@@ -17,7 +17,7 @@ matrix:
1717 env : TEST_TARGET=default
1818 - python : 3.6
1919 env : TEST_TARGET=notebooks
20- - python : 2.7
20+ - python : 3.6
2121 env : TEST_TARGET=latest_branca
2222 - python : 3.6
2323 env : TEST_TARGET=latest_branca
@@ -28,36 +28,39 @@ matrix:
2828 env : TEST_TARGET=latest_branca
2929
3030before_install :
31- - wget http://bit.ly/miniconda -O miniconda.sh
32- - bash miniconda.sh -b -p $HOME/miniconda
33- - export PATH="$HOME/miniconda/bin:$PATH"
34- - conda update --yes --all
35- - conda config --add channels conda-forge --force
36- - conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION phantomjs --file requirements.txt --file requirements-dev.txt
37- - source activate TEST
38-
39- - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
40- conda install --yes mock ;
41- fi
42- - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
43- conda install --yes doctr ;
44- fi
31+ - wget http://bit.ly/miniconda -O miniconda.sh
32+ - bash miniconda.sh -b -p $HOME/miniconda
33+ - export PATH="$HOME/miniconda/bin:$PATH"
34+ - conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
35+ - conda update conda
36+ - conda config --add channels conda-forge --force
37+ - conda create --name TEST python=$TRAVIS_PYTHON_VERSION phantomjs --file requirements.txt --file requirements-dev.txt
38+ - source activate TEST
39+
40+ - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
41+ conda install mock ;
42+ fi
43+ - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
44+ conda install doctr ;
45+ fi
4546
4647# Test source distribution.
4748install :
48- - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
49+ - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
4950
5051script :
51- - if [[ $TEST_TARGET == 'default' ]]; then
52- py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
53- fi
54-
55- - if [[ $TEST_TARGET == 'latest_branca' ]]; then
56- pip install git+https://github.com/python-visualization/branca.git ;
57- py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
58- fi
59-
60- - if [[ $TEST_TARGET == 'notebooks' ]]; then
61- for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
62- py.test -vv tests/notebooks/test_notebooks.py ;
63- fi
52+ - cp -r tests/ examples/ /tmp && cd /tmp
53+ - if [[ $TEST_TARGET == 'default' ]]; then
54+ py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
55+ fi
56+
57+ - if [[ $TEST_TARGET == 'latest_branca' ]]; then
58+ conda uninstall branca ;
59+ pip install git+https://github.com/python-visualization/branca.git ;
60+ py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
61+ fi
62+
63+ - if [[ $TEST_TARGET == 'notebooks' ]]; then
64+ for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402,I100 --max-line-length=100 --show-source ; done ;
65+ py.test -vv tests/notebooks/test_notebooks.py ;
66+ fi
0 commit comments