File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ before_install:
41
41
conda update conda --quiet
42
42
conda config --add channels conda-forge --force
43
43
conda install pycryptosat
44
- conda config --set safety_checks disabled
45
44
conda config --set channel_priority strict
46
45
conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
47
46
source activate TEST
@@ -88,21 +87,22 @@ script:
88
87
fi
89
88
90
89
# Docs
91
- - if [[ -z "$TRAVIS_TAG" ]]; then
92
- DEPLOY_DIR=dev ;
93
- else
94
- DEPLOY_DIR="version-$TRAVIS_TAG" ;
90
+ - |
91
+ if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
92
+ set -e
93
+ conda install doctr
94
+ cp examples/Quickstart.ipynb docs/quickstart.ipynb
95
+ pushd docs
96
+ make clean html linkcheck
97
+ popd
98
+ if [[ -z "$TRAVIS_TAG" ]]; then
99
+ python -m doctr deploy --build-tags --key-path github_deploy_key_python_visualization_folium.enc --built-docs docs/_build/html/ dev
100
+ else
101
+ python -m doctr deploy --build-tags --key-path github_deploy_key_python_visualization_folium.enc --built-docs docs/_build/html/ "version-$TRAVIS_TAG"
102
+ python -m doctr deploy --build-tags --key-path github_deploy_key_python_visualization_folium.enc --built-docs docs/_build/html/ .
103
+ fi
95
104
fi
96
105
97
- - if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
98
- set -e ;
99
- conda install doctr ;
100
- cp examples/Quickstart.ipynb docs/quickstart.ipynb ;
101
- pushd docs ;
102
- make clean html linkcheck ;
103
- popd ;
104
- python -m doctr deploy --build-tags --key-path github_deploy_key_python_visualization_folium.enc --built-docs docs/_build/html/ $DEPLOY_DIR ;
105
- fi
106
106
107
107
deploy :
108
108
skip_cleanup : true
You can’t perform that action at this time.
0 commit comments