Skip to content

Refactor Travis CI config #252

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

Merged
merged 2 commits into from
Jun 2, 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
62 changes: 29 additions & 33 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,38 @@
language: python
matrix:
include:
- python: "3.5"
env: BLURB=true CHERRY_PICKER=false
- python: "3.6-dev"
env: BLURB=true CHERRY_PICKER=true
- python: "3.7-dev"
env: BLURB=true CHERRY_PICKER=true
- python: "nightly"
env: BLURB=true CHERRY_PICKER=true
python:
- "3.5"
- "3.6-dev"
- "3.7-dev"
- "nightly"

dist: trusty
sudo: false
cache: pip

before_install:
- pip install --upgrade flit
- pip install --upgrade flit
install:
- |
if [[ $CHERRY_PICKER == true ]]; then
pushd cherry_picker
flit install
popd
fi;
- |
if [[ $BLURB == true ]]; then
pushd blurb
flit install
popd
fi;
- pushd blurb
- flit install
- popd
script:
- |
if [[ $CHERRY_PICKER == true ]]; then
pushd cherry_picker
pytest cherry_picker/test.py -v
popd
fi;
- |
if [[ $BLURB == true ]]; then
blurb test
fi;
- blurb test

.mixtures:
- &install-and-test-cherry-picker
install:
- pushd cherry_picker
- flit install
- popd
script:
- pushd cherry_picker
- pytest cherry_picker/test.py -v
- popd
jobs:
include:
- python: "3.6-dev"
<<: *install-and-test-cherry-picker
- python: "3.7-dev"
<<: *install-and-test-cherry-picker
- python: "nightly"
<<: *install-and-test-cherry-picker