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:
4141 conda update conda --quiet
4242 conda config --add channels conda-forge --force
4343 conda install pycryptosat
44- conda config --set safety_checks disabled
4544 conda config --set channel_priority strict
4645 conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
4746 source activate TEST
@@ -88,21 +87,22 @@ script:
8887 fi
8988
9089# 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
95104 fi
96105
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
106106
107107deploy :
108108 skip_cleanup : true
You can’t perform that action at this time.
0 commit comments