Skip to content

Commit e3052d1

Browse files
committed
Improved build matrix
1 parent 1db798c commit e3052d1

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@ matrix:
66
fast_finish: true
77
include:
88
- python: 2.7
9-
env: TEST_TARGET=release
9+
env: TEST_TARGET=branca_release
1010
- python: 3.5
11-
env: TEST_TARGET=release
11+
env: TEST_TARGET=branca_release
1212
- python: 3.5
1313
env: TEST_TARGET=coding_standards
1414
- python: 3.5
1515
env: TEST_TARGET=notebooks
16-
allow_failures:
1716
- python: 2.7
1817
env: TEST_TARGET=branca_latest
1918
- python: 3.5
2019
env: TEST_TARGET=branca_latest
21-
20+
allow_failures:
21+
- python: 3.5
22+
env: TEST_TARGET=branca_latest
2223

2324
before_install:
2425
- wget http://bit.ly/miniconda -O miniconda.sh
@@ -38,8 +39,8 @@ install:
3839
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install folium-${version}.tar.gz && popd
3940

4041
script:
41-
- if [[ 'release' == *"$TEST_TARGET"* ]]; then
42-
python setup.py test ;
42+
- if [[ $TEST_TARGET == 'branca_release' ]]; then
43+
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
4344
fi
4445

4546
- if [[ $TEST_TARGET == 'branca_latest' ]]; then
@@ -50,3 +51,7 @@ script:
5051
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
5152
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
5253
fi
54+
55+
- if [[ $TEST_TARGET == 'notebooks' ]]; then
56+
py.test -vv tests/notebooks/test_notebooks.py ;
57+
fi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __call__(self, exporter=None, filename=None):
3232
open(filename, 'w').write(out_nb[0].encode('utf-8'))
3333

3434
class TestNotebooks(object):
35-
_filepath = rootpath.rstrip('/')+'/../examples/'
35+
_filepath = rootpath.rstrip('/') + '/../../examples/'
3636
_nblist = [x for x in os.listdir(_filepath) if x.endswith('.ipynb')]
3737

3838
for fn in TestNotebooks._nblist:

0 commit comments

Comments
 (0)