diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-24 22:56:07 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-01 08:35:44 +0000 |
commit | 1a54be06cd359257478b584611f34058d21fe723 (patch) | |
tree | db3d6ca2dfa2a87ae2efdac6e412c2b780a64009 /.travis.yml | |
parent | 706fad1ce88c2104009a3835ee343ff9d8ec8b79 (diff) |
Simplify Travis CI builds.
Have one script per build. This means more duplication between the
scripts, but it's much easier to understand and to run locally.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 73 |
1 files changed, 33 insertions, 40 deletions
diff --git a/.travis.yml b/.travis.yml index 5bb5a87d..416aecc7 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -9,10 +9,10 @@ language: c | |||
9 | matrix: | 9 | matrix: |
10 | include: | 10 | include: |
11 | - stage: "Stage 1" | 11 | - stage: "Stage 1" |
12 | env: JOB=toxcore ENV=linux | 12 | env: JOB=cmake-linux |
13 | compiler: gcc | 13 | compiler: gcc |
14 | addons: | 14 | addons: |
15 | apt: &apt-dependencies | 15 | apt: |
16 | packages: | 16 | packages: |
17 | - libconfig-dev # For tox-bootstrapd. | 17 | - libconfig-dev # For tox-bootstrapd. |
18 | - libcv-dev # For av_test. | 18 | - libcv-dev # For av_test. |
@@ -23,57 +23,55 @@ matrix: | |||
23 | - libgtest-dev # For unit tests. | 23 | - libgtest-dev # For unit tests. |
24 | - libvpx-dev # For toxav. | 24 | - libvpx-dev # For toxav. |
25 | - portaudio19-dev # For av_test. | 25 | - portaudio19-dev # For av_test. |
26 | install: .travis/$JOB install | ||
27 | script: .travis/$JOB script | ||
28 | after_script: .travis/upload-coverage | ||
26 | - stage: "Stage 1" | 29 | - stage: "Stage 1" |
27 | if: type IN (push, api, cron) | 30 | env: JOB=autotools-linux |
28 | env: JOB=autotools ENV=linux | ||
29 | compiler: clang | 31 | compiler: clang |
30 | addons: | 32 | addons: |
31 | apt: *apt-dependencies | 33 | apt: |
32 | - stage: "Stage 1" | 34 | packages: |
33 | if: type IN (push, api, cron) | 35 | - libconfig-dev # For tox-bootstrapd. |
34 | env: JOB=toxcore ENV=windows ARCH=i686 | 36 | - libopus-dev # For toxav. |
35 | group: deprecated-2017Q4 | 37 | - libvpx-dev # For toxav. |
36 | services: | 38 | install: .travis/$JOB install |
37 | - docker | 39 | script: .travis/$JOB script |
38 | - stage: "Stage 1" | ||
39 | if: type IN (push, api, cron) | ||
40 | env: JOB=toxcore ENV=windows ARCH=x86_64 | ||
41 | group: deprecated-2017Q4 | ||
42 | services: | ||
43 | - docker | ||
44 | - stage: "Stage 1" | 40 | - stage: "Stage 1" |
45 | if: type IN (push, api, cron) | 41 | if: type IN (push, api, cron) |
46 | env: JOB=installmd ENV=windows SUPPORT_ARCH_i686=true SUPPORT_ARCH_x86_64=false SUPPORT_TEST=true ENABLE_ARCH_i686=true ENABLE_ARCH_x86_64=false ENABLE_TEST=true ALLOW_TEST_FAILURE=true | 42 | env: JOB=cmake-win32 |
47 | services: | 43 | services: [docker] |
48 | - docker | 44 | install: .travis/$JOB install |
45 | script: .travis/$JOB script | ||
49 | - stage: "Stage 1" | 46 | - stage: "Stage 1" |
50 | if: type IN (push, api, cron) | 47 | if: type IN (push, api, cron) |
51 | env: JOB=installmd ENV=windows SUPPORT_ARCH_i686=false SUPPORT_ARCH_x86_64=true SUPPORT_TEST=true ENABLE_ARCH_i686=false ENABLE_ARCH_x86_64=true ENABLE_TEST=true ALLOW_TEST_FAILURE=true | 48 | env: JOB=cmake-win64 |
52 | services: | 49 | services: [docker] |
53 | - docker | 50 | install: .travis/$JOB install |
51 | script: .travis/$JOB script | ||
54 | - stage: "Stage 1" | 52 | - stage: "Stage 1" |
55 | if: type IN (push, api, cron) | 53 | if: type IN (push, api, cron) |
56 | env: JOB=toxcore ENV=freebsd | 54 | env: JOB=cmake-freebsd |
57 | dist: trusty | ||
58 | sudo: required | 55 | sudo: required |
59 | install: other/travis/phase $JOB $ENV install stage1 | 56 | install: .travis/$JOB-stage1 install |
60 | script: other/travis/phase $JOB $ENV script stage1 | 57 | script: .travis/$JOB-stage1 script |
61 | - stage: "Stage 1" | 58 | - stage: "Stage 1" |
62 | if: type IN (push, api, cron) | 59 | if: type IN (push, api, cron) |
63 | env: JOB=tox-bootstrapd-docker ENV=linux | 60 | env: JOB=tox-bootstrapd-docker |
64 | services: | 61 | services: [docker] |
65 | - docker | 62 | script: .travis/$JOB |
66 | sudo: required | ||
67 | - stage: "Stage 2" | 63 | - stage: "Stage 2" |
68 | if: type IN (push, api, cron) | 64 | if: type IN (push, api, cron) |
69 | env: JOB=toxcore ENV=freebsd | 65 | env: JOB=cmake-freebsd |
70 | dist: trusty | ||
71 | sudo: required | 66 | sudo: required |
72 | install: other/travis/phase $JOB $ENV install stage2 | 67 | install: .travis/$JOB-stage2 install |
68 | script: .travis/$JOB-stage2 script | ||
73 | - stage: "Stage 2" | 69 | - stage: "Stage 2" |
74 | if: type IN (push, api, cron) | 70 | if: type IN (push, api, cron) |
75 | env: JOB=toxcore ENV=osx RUN_TESTS=true | 71 | env: JOB=cmake-osx |
76 | os: osx | 72 | os: osx |
73 | install: .travis/$JOB install | ||
74 | script: .travis/$JOB script | ||
77 | fast_finish: true | 75 | fast_finish: true |
78 | 76 | ||
79 | cache: | 77 | cache: |
@@ -81,11 +79,6 @@ cache: | |||
81 | - $HOME/cache | 79 | - $HOME/cache |
82 | - /opt/freebsd/cache | 80 | - /opt/freebsd/cache |
83 | 81 | ||
84 | install: other/travis/phase $JOB $ENV install | ||
85 | script: other/travis/phase $JOB $ENV script | ||
86 | after_script: other/travis/phase $JOB $ENV after_script | ||
87 | after_failure: other/travis/phase $JOB $ENV after_failure | ||
88 | |||
89 | notifications: | 82 | notifications: |
90 | irc: | 83 | irc: |
91 | channels: | 84 | channels: |