Skip to content

Commit ecfb506

Browse files
committed
use only TRAVIS_JOB_NAME
1 parent 5357048 commit ecfb506

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

.travis.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ env:
1515
matrix:
1616
fast_finish: true
1717
include:
18-
- name: default-python2
19-
env: TEST_TARGET=default PY=2.7
18+
- name: legacy-python
19+
env: PY=2.7
2020
- name: default
21-
env: TEST_TARGET=default PY=3.7
21+
env: PY=3.7
2222
- name: notebooks-conding-standard
2323
env: PY=3.7
2424
- name: notebooks-code
2525
env: PY=3.7
26-
- name: latest_branca
26+
- name: latest-branca
2727
env: PY=3.7
2828
- name: docs
2929
env: PY=3.7
3030
allow_failures:
31-
- name: latest_branca
31+
- name: latest-branca
3232
env: PY=3.7
3333

3434
before_install:
@@ -60,11 +60,17 @@ script:
6060
cp -r tests/ examples/ /tmp ;
6161
fi
6262

63-
- if [[ $TEST_TARGET == 'default' ]]; then
63+
- if [[ $TRAVIS_JOB_NAME == 'default' ]]; then
64+
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
65+
fi
66+
67+
- if [[ $TRAVIS_JOB_NAME == 'legacy-python' ]]; then
6468
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
6569
fi
6670

67-
- if [[ $TRAVIS_JOB_NAME == 'latest_branca' ]]; then
71+
legacy-python
72+
73+
- if [[ $TRAVIS_JOB_NAME == 'latest-branca' ]]; then
6874
conda uninstall branca ;
6975
pip install git+https://github.com/python-visualization/branca.git ;
7076
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
@@ -80,12 +86,14 @@ script:
8086
pytest --nbval-lax -p no:python /tmp/examples ;
8187
fi
8288

83-
- if [[ $TEST_TARGET == 'docs' ]]; then
84-
- if [[ -z "$TRAVIS_TAG" ]]; then
85-
DEPLOY_DIR=dev;
86-
else
87-
DEPLOY_DIR="version-$TRAVIS_TAG";
88-
fi
89+
# Docs
90+
- if [[ -z "$TRAVIS_TAG" ]]; then
91+
DEPLOY_DIR=dev;
92+
else
93+
DEPLOY_DIR="version-$TRAVIS_TAG";
94+
fi
95+
96+
- if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
8997
set -e ;
9098
conda install doctr ;
9199
cp examples/Quickstart.ipynb docs/quickstart.ipynb ;

0 commit comments

Comments
 (0)