Skip to content

Commit 6529224

Browse files
pitroularryhastings
authored andcommitted
Test blurb in Travis-CI (#145)
* Test blurb in Travis-CI * Use build matrix and add Python 3.5 * Add forgotten `fi`s. Also use newer Trusty build image. * Allow 3.5 for blurb * Run cherry_picker tests from the right directory
1 parent 674b70c commit 6529224

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

.travis.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,42 @@
11
language: python
2-
python:
3-
- "3.6-dev"
4-
- "3.7-dev"
5-
- "nightly"
2+
matrix:
3+
include:
4+
- python: "3.5"
5+
env: BLURB=true CHERRY_PICKER=false
6+
- python: "3.6-dev"
7+
env: BLURB=true CHERRY_PICKER=true
8+
- python: "3.7-dev"
9+
env: BLURB=true CHERRY_PICKER=true
10+
- python: "nightly"
11+
env: BLURB=true CHERRY_PICKER=true
612

13+
dist: trusty
714
sudo: false
815
cache: pip
916

1017
before_install:
11-
- cd cherry_picker
12-
install:
1318
- pip install --upgrade flit
14-
- flit install
19+
install:
20+
- |
21+
if [[ $CHERRY_PICKER == true ]]; then
22+
pushd cherry_picker
23+
flit install
24+
popd
25+
fi;
26+
- |
27+
if [[ $BLURB == true ]]; then
28+
pushd blurb
29+
flit install
30+
popd
31+
fi;
1532
script:
16-
- pytest cherry_picker/test.py -v
33+
- |
34+
if [[ $CHERRY_PICKER == true ]]; then
35+
pushd cherry_picker
36+
pytest cherry_picker/test.py -v
37+
popd
38+
fi;
39+
- |
40+
if [[ $BLURB == true ]]; then
41+
blurb test
42+
fi;

0 commit comments

Comments
 (0)