15
15
matrix :
16
16
fast_finish : true
17
17
include :
18
- - name : default-python2
19
- env : TEST_TARGET=default PY=2.7
18
+ - name : legacy-python
19
+ env : PY=2.7
20
20
- name : default
21
- env : TEST_TARGET=default PY=3.7
21
+ env : PY=3.7
22
22
- name : notebooks-conding-standard
23
23
env : PY=3.7
24
24
- name : notebooks-code
25
25
env : PY=3.7
26
- - name : latest_branca
26
+ - name : latest-branca
27
27
env : PY=3.7
28
28
- name : docs
29
29
env : PY=3.7
30
30
allow_failures :
31
- - name : latest_branca
31
+ - name : latest-branca
32
32
env : PY=3.7
33
33
34
34
before_install :
@@ -60,11 +60,15 @@ script:
60
60
cp -r tests/ examples/ /tmp ;
61
61
fi
62
62
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
64
68
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
65
69
fi
66
70
67
- - if [[ $TRAVIS_JOB_NAME == 'latest_branca ' ]]; then
71
+ - if [[ $TRAVIS_JOB_NAME == 'latest-branca ' ]]; then
68
72
conda uninstall branca ;
69
73
pip install git+https://github.com/python-visualization/branca.git ;
70
74
pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
@@ -80,15 +84,21 @@ script:
80
84
pytest --nbval-lax -p no:python /tmp/examples ;
81
85
fi
82
86
83
- - if [[ $TEST_TARGET == 'docs' ]]; then
87
+ # Docs
88
+ - if [[ -z "$TRAVIS_TAG" ]]; then
89
+ DEPLOY_DIR=dev ;
90
+ else
91
+ DEPLOY_DIR="version-$TRAVIS_TAG" ;
92
+ fi
93
+
94
+ - if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
84
95
set -e ;
85
96
conda install doctr ;
86
97
cp examples/Quickstart.ipynb docs/quickstart.ipynb ;
87
98
pushd docs ;
88
99
make clean html linkcheck ;
89
100
popd ;
90
- python -m doctr deploy --sync .;
91
- python -m doctr deploy --sync --no-require-master --built-docs docs/_build/html "docs-$TRAVIS_BRANCH" ;
101
+ python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs docs/_build/html/ $DEPLOY_DIR
92
102
fi
93
103
94
104
doctr :
0 commit comments