@@ -2,29 +2,35 @@ language: python
2
2
3
3
sudo : false
4
4
5
+ python :
6
+ - 2.7
7
+ - 3.4
8
+ - 3.5
9
+
5
10
env :
6
- - PYTHON="2.7"
7
- - PYTHON="3.4"
8
- - PYTHON="3.5"
11
+ - TEST_TARGET=branca_release
12
+ - TEST_TARGET=branca_latest
9
13
10
14
before_install :
11
15
- wget http://bit.ly/miniconda -O miniconda.sh
12
16
- bash miniconda.sh -b -p $HOME/miniconda
13
17
- export PATH="$HOME/miniconda/bin:$PATH"
14
- - conda config --add channels ioos -f
15
18
- conda update --yes --all
16
- - travis_retry conda create --yes -n test python=$PYTHON nomkl --file requirements.txt
17
- - source activate test
18
- - conda install --yes --file requirements-dev.txt;
19
- - pip install git+https://github.com/python-visualization/branca.git@befdf0bb29ecea488c79147fa1a851e15bfe5a10
20
- - if [[ "$PYTHON" == "3.4" ]]; then
21
- travis_retry conda install --yes nbconvert jupyter_client ipykernel;
22
- conda install --yes -c ioos geopandas;
19
+ - conda config --add channels conda-forge --force
20
+ - conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION nomkl --file requirements.txt --file requirements-dev.txt
21
+ - source activate TEST
22
+
23
+ - if [[ "$TRAVIS_PYTHON_VERSION" != "3.5" ]]; then
24
+ conda install --yes mock ;
23
25
fi
24
- - if [[ "$PYTHON" != "3.5" ]]; then
25
- travis_retry conda install --yes mock ;
26
+
27
+ - if [[ $TEST_TARGET == 'branca_latest' ]]; then
28
+ pip install git+https://github.com/python-visualization/branca.git ;
26
29
fi
27
- - travis_retry pip install
30
+
31
+ # Test source distribution.
32
+ install :
33
+ - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
28
34
29
35
script :
30
36
- python setup.py test
0 commit comments