Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.travis.yml: Add sentinel job #2541

Merged
merged 2 commits into from
Jul 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,49 @@ python:
- 3.5
- 3.6

.disable_global: &disable_global
addons: false
cache: pip
before_install: false
install: false
before_script: false
script: false
after_success: false
after_failure: false
before_deploy: false
deploy: false

stages:
- name: sentinel
if: branch != master OR type = pull_request
- test
- moban
- name: unsupported
if: branch = master AND type = push

.check_moban: &check_moban
<<: *disable_global
python: 3.6
stage: moban
addons: false
cache: pip
before_install: false
install: pip install moban
before_script: false
script: .ci/check_moban.sh
after_success: false
after_failure: false
if: branch != master OR type = pull_request

jobs:
include:
- stage: sentinel
# All other jobs will be cancelled if the sentinel job fails
<<: *disable_global
python: 3.6
install: pip install ".[alldeps]"
script: coala --non-interactive -V

- 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