Skip to content

Commit

Permalink
.travis.yml: Add sentinel job
Browse files Browse the repository at this point in the history
This makes Python 3.6 the sentinel job,
so it runs by itself initially and causes
all other jobs to be cancelled if it fails.
  • Loading branch information
jayvdb committed Jun 19, 2018
1 parent a66a8b8 commit 5992a41
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ language: python
python:
- 3.4
- 3.5
- 3.6

stages:
- name: sentinel
if: branch != master OR type = pull_request
- test
- moban
- name: unsupported
Expand All @@ -27,6 +28,16 @@ stages:

jobs:
include:
- stage: sentinel
# All other jobs will be cancelled if the sentinel job fails
python: 3.6

- stage: test
# The sentinel job isnt active on master pushes, so the
# job is re-added to the bottom of the test matrix
python: 3.6
if: branch = master AND type = push

- python: 2.7
stage: unsupported
env: PIP_NO_COMPILE=1
Expand Down

0 comments on commit 5992a41

Please sign in to comment.