Skip to content

Commit

Permalink
i#2255 Travis pkgs: Support scheduled or manual package builds (#2258)
Browse files Browse the repository at this point in the history
We need to check for both "type" and the TRAVIS_EVENT_TYPE env var in
the jobs matrix to support both scheduled and manually-triggered
package builds.

Issue: #2255
  • Loading branch information
derekbruening authored Feb 15, 2020
1 parent f1e060e commit 8c36c59
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,30 @@ language:

# We use a jobs include approach rather than an os, compiler, env matrix
# with exludes so we can use conditional builds (plus it's clearer this way).
# For packages, "type = cron" is for the real cron builds, and the env var
# TRAVIS_EVENT_TYPE is set for manually-triggered package builds (that
# same env var is set by Travis for "type = cron" but the env var is not
# set during job matrix setup: only once a job starts).
jobs:
include:
#######################################################################
# Regular test jobs
- if: type != cron
- if: type != cron AND env(TRAVIS_EVENT_TYPE) != cron
os: linux
compiler: gcc
- if: type != cron
- if: type != cron AND env(TRAVIS_EVENT_TYPE) != cron
os: linux
compiler: clang
- if: type != cron
- if: type != cron AND env(TRAVIS_EVENT_TYPE) != cron
os: osx
compiler: clang
#######################################################################
# Package jobs
- if: type = cron
- if: type = cron OR env(TRAVIS_EVENT_TYPE) = cron
os: linux
compiler: gcc
env: DEPLOY=yes
- if: type = cron
- if: type = cron OR env(TRAVIS_EVENT_TYPE) = cron
os: osx
compiler: clang
env: DEPLOY=yes
Expand Down

0 comments on commit 8c36c59

Please sign in to comment.