@@ -2,29 +2,41 @@ 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
18
+ - conda config --add channels conda-forge -f
15
19
- 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
20
+ - travis_retry conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt
21
+ - source activate TEST
22
+ # Development dependencies.
23
+ - travis_retry conda install --yes --file requirements-dev.txt
24
+
25
+ - if [[ "$TRAVIS_PYTHON_VERSION" == "3.4" ]]; then
21
26
travis_retry conda install --yes nbconvert jupyter_client ipykernel;
22
- conda install --yes -c ioos geopandas;
27
+ conda install --yes -c conda-forge geopandas;
23
28
fi
24
- - if [[ "$PYTHON " != "3.5" ]]; then
29
+ - if [[ "$TRAVIS_PYTHON_VERSION " != "3.5" ]]; then
25
30
travis_retry conda install --yes mock ;
26
31
fi
27
- - travis_retry pip install
32
+
33
+ - if [[ $TEST_TARGET == 'branca_latest' ]]; then
34
+ pip install git+https://github.com/python-visualization/branca.git ;
35
+ fi
36
+
37
+ # Test source distribution.
38
+ install :
39
+ - python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
28
40
29
41
script :
30
42
- python setup.py test
0 commit comments