1515matrix :
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
3434before_install :
35- - wget http://bit.ly/miniconda -O miniconda.sh
36- - bash miniconda.sh -b -p $HOME/miniconda
37- - export PATH="$HOME/miniconda/bin:$PATH"
38- - conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
39- - conda update conda
40- - conda config --remove channels defaults --force
41- - conda config --add channels conda-forge --force
42- - conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
43- - source activate TEST
44- # firefox headless driver
45- - wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz -O geckodriver.tar.gz
46- - mkdir geckodriver
47- - tar -xzf geckodriver.tar.gz -C geckodriver
48- - export PATH=$PATH:$PWD/geckodriver
49-
50- - if [[ "$PY" == "2.7" ]]; then
51- conda install mock ;
52- fi
35+ # Install miniconda and create TEST env.
36+ - |
37+ wget http://bit.ly/miniconda -O miniconda.sh
38+ bash miniconda.sh -b -p $HOME/miniconda
39+ export PATH="$HOME/miniconda/bin:$PATH"
40+ conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
41+ conda update conda --quiet
42+ conda config --add channels conda-forge --force
43+ conda install pycryptosat
44+ conda config --set safety_checks disabled
45+ conda config --set channel_priority strict
46+ conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
47+ source activate TEST
48+ # Install firefox headless driver.
49+ - |
50+ wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz -O geckodriver.tar.gz
51+ mkdir geckodriver
52+ tar -xzf geckodriver.tar.gz -C geckodriver
53+ export PATH=$PATH:$PWD/geckodriver
54+
5355
5456# Test source distribution.
5557install :
56- - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
58+ - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install --no-deps --force-reinstall folium-${version}.tar.gz && popd
5759
5860script :
5961 - if [[ $TRAVIS_JOB_NAME != 'docs' ]]; then
6062 cp -r tests/ examples/ /tmp ;
6163 fi
6264
63- - if [[ $TEST_TARGET == 'default' ]]; then
65+ - if [[ $TRAVIS_JOB_NAME == 'default' ]]; then
66+ pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
67+ fi
68+
69+ - if [[ $TRAVIS_JOB_NAME == 'legacy-python' ]]; then
70+ conda install mock ;
6471 pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
6572 fi
6673
67- - if [[ $TRAVIS_JOB_NAME == 'latest_branca ' ]]; then
74+ - if [[ $TRAVIS_JOB_NAME == 'latest-branca ' ]]; then
6875 conda uninstall branca ;
6976 pip install git+https://github.com/python-visualization/branca.git ;
7077 pytest /tmp -vv --ignore=tests/notebooks/test_notebooks.py ;
@@ -80,15 +87,21 @@ script:
8087 pytest --nbval-lax -p no:python /tmp/examples ;
8188 fi
8289
83- - if [[ $TEST_TARGET == 'docs' ]]; then
90+ # Docs
91+ - if [[ -z "$TRAVIS_TAG" ]]; then
92+ DEPLOY_DIR=dev ;
93+ else
94+ DEPLOY_DIR="version-$TRAVIS_TAG" ;
95+ fi
96+
97+ - if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
8498 set -e ;
8599 conda install doctr ;
86100 cp examples/Quickstart.ipynb docs/quickstart.ipynb ;
87101 pushd docs ;
88102 make clean html linkcheck ;
89103 popd ;
90- python -m doctr deploy --sync .;
91- python -m doctr deploy --sync --no-require-master --built-docs docs/_build/html "docs-$TRAVIS_BRANCH" ;
104+ python -m doctr deploy --build-tags --key-path github_deploy_key.enc --built-docs docs/_build/html/ $DEPLOY_DIR ;
92105 fi
93106
94107doctr :
0 commit comments