aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: dfe16b8292a013b7504a4ea64726075ddc90a6b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
language: c

sudo: required
dist: trusty

os:
  - linux
  - osx

env:
  -
  - DISTRO=Ubuntu1804
  - DISTRO=Fedora28 CI_BUILD_TYPE=wayland
  - DISTRO=Fedora28 CI_BUILD_TYPE=misc
  - DISTRO=Fedora28 CI_BUILD_TYPE=misc-disabled
  - DISTRO=Fedora28 CI_BUILD_TYPE=release-ready
  - DISTRO=Debian91
  - DISTRO=Archlinux

services:
  - docker

matrix:
  fast_finish: true
  exclude:
    - os: osx
      env: DISTRO=Ubuntu1804
    - os: osx
      env: DISTRO=Fedora28 CI_BUILD_TYPE=wayland
    - os: osx
      env: DISTRO=Fedora28 CI_BUILD_TYPE=misc
    - os: osx
      env: DISTRO=Fedora28 CI_BUILD_TYPE=misc-disabled
    - os: osx
      env: DISTRO=Fedora28 CI_BUILD_TYPE=release-ready
    - os: osx
      env: DISTRO=Debian91
    - os: osx
      env: DISTRO=Archlinux

    - os: linux
      env:
  allow_failures:
    - os: linux
      env: DISTRO=Fedora28 CI_BUILD_TYPE=release-ready

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi

before_script:
  - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
        docker pull stefanschmidt1/ci-support-files:$DISTRO
      fi

script:
  - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
        docker run -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO /src/.ci/ci-linux-build.sh $CI_BUILD_TYPE
      fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-build.sh ; fi

after_success:
  - |
      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
        docker login -u stefanschmidt1 -p "$DOCKER_PASSWORD"
        docker tag stefanschmidt1/ci-support-files:$DISTRO stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
        docker push stefanschmidt1/ci-support-files:$DISTRO
        docker push stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
      fi

notifications:
  irc:
    channels:
      - "chat.freenode.net#edevelop"
    on_success: change
    on_failure: always
    template:
      - "TravisCI build %{build_number} in branch %{branch}: %{result} - %{message}"
      - "Commit: %{commit_subject} (%{commit}) from %{author}"
      - "Change view : %{compare_url}"
      - "Build details : %{build_url}"