diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-15 20:24:44 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-15 23:07:54 +0000 |
commit | 7110f138e97f72bf02e416425d61f90626a3a2e8 (patch) | |
tree | bca48ea1e97afbd93b28df9e831514c1a3508c63 /.travis.yml | |
parent | cec5fea71bff1ba46be6bc126efb85c28a169f9e (diff) |
Run fewer Travis jobs during Pull Requests.
Still run all the jobs during cron and regular push to branch. We
disabled build for push to branch, so cron is the only place where all
builds are run. This also means we need to worry less about spending time
in nightly builds, because they occur only once a day.
See https://github.com/travis-ci/travis-ci/issues/9071
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 47b16c31..67164890 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,3 +1,9 @@ | |||
1 | # For Pull Requests, we build only the first three jobs: autotools on Linux, | ||
2 | # cmake on Linux, and cmake on Windows 32 bit. | ||
3 | # | ||
4 | # For branch builds and cron builds (once a day), we build all the jobs. This | ||
5 | # is achieved using the "if: type IN (push, api, cron)" fields in the matrix. | ||
6 | |||
1 | language: c | 7 | language: c |
2 | 8 | ||
3 | matrix: | 9 | matrix: |
@@ -14,27 +20,32 @@ matrix: | |||
14 | services: | 20 | services: |
15 | - docker | 21 | - docker |
16 | - stage: "Stage 1" | 22 | - stage: "Stage 1" |
23 | if: type IN (push, api, cron) | ||
17 | env: JOB=toxcore ENV=windows ARCH=x86_64 | 24 | env: JOB=toxcore ENV=windows ARCH=x86_64 |
18 | group: deprecated-2017Q4 | 25 | group: deprecated-2017Q4 |
19 | services: | 26 | services: |
20 | - docker | 27 | - docker |
21 | - stage: "Stage 1" | 28 | - stage: "Stage 1" |
29 | if: type IN (push, api, cron) | ||
22 | env: JOB=toxcore ENV=freebsd | 30 | env: JOB=toxcore ENV=freebsd |
23 | dist: trusty | 31 | dist: trusty |
24 | sudo: required | 32 | sudo: required |
25 | install: other/travis/phase $JOB $ENV install stage1 | 33 | install: other/travis/phase $JOB $ENV install stage1 |
26 | script: other/travis/phase $JOB $ENV script stage1 | 34 | script: other/travis/phase $JOB $ENV script stage1 |
27 | - stage: "Stage 1" | 35 | - stage: "Stage 1" |
36 | if: type IN (push, api, cron) | ||
28 | env: JOB=tox-bootstrapd-docker ENV=linux | 37 | env: JOB=tox-bootstrapd-docker ENV=linux |
29 | services: | 38 | services: |
30 | - docker | 39 | - docker |
31 | sudo: required | 40 | sudo: required |
32 | - stage: "Stage 2" | 41 | - stage: "Stage 2" |
42 | if: type IN (push, api, cron) | ||
33 | env: JOB=toxcore ENV=freebsd | 43 | env: JOB=toxcore ENV=freebsd |
34 | dist: trusty | 44 | dist: trusty |
35 | sudo: required | 45 | sudo: required |
36 | install: other/travis/phase $JOB $ENV install stage2 | 46 | install: other/travis/phase $JOB $ENV install stage2 |
37 | - stage: "Stage 2" | 47 | - stage: "Stage 2" |
48 | if: type IN (push, api, cron) | ||
38 | env: JOB=toxcore ENV=osx RUN_TESTS=true | 49 | env: JOB=toxcore ENV=osx RUN_TESTS=true |
39 | os: osx | 50 | os: osx |
40 | fast_finish: true | 51 | fast_finish: true |