Skip to content

Commit 9360775

Browse files
authored
Merge pull request #510 from ocefpaf/travis_matrix
Travis matrix
2 parents d204712 + e3052d1 commit 9360775

5 files changed

Lines changed: 24 additions & 78 deletions

File tree

.gitignore

Lines changed: 0 additions & 57 deletions
This file was deleted.

.travis.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@ language: python
22

33
sudo: false
44

5-
python:
6-
- 2.7
7-
- 3.4
8-
- 3.5
9-
10-
env:
11-
- TEST_TARGET=branca_release
12-
- TEST_TARGET=branca_latest
13-
- TEST_TARGET=coding_standards
5+
matrix:
6+
fast_finish: true
7+
include:
8+
- python: 2.7
9+
env: TEST_TARGET=branca_release
10+
- python: 3.5
11+
env: TEST_TARGET=branca_release
12+
- python: 3.5
13+
env: TEST_TARGET=coding_standards
14+
- python: 3.5
15+
env: TEST_TARGET=notebooks
16+
- python: 2.7
17+
env: TEST_TARGET=branca_latest
18+
- python: 3.5
19+
env: TEST_TARGET=branca_latest
20+
allow_failures:
21+
- python: 3.5
22+
env: TEST_TARGET=branca_latest
1423

1524
before_install:
1625
- wget http://bit.ly/miniconda -O miniconda.sh
@@ -31,7 +40,7 @@ install:
3140

3241
script:
3342
- if [[ $TEST_TARGET == 'branca_release' ]]; then
34-
python setup.py test ;
43+
py.test -vv --ignore=tests/notebooks/test_notebooks.py ;
3544
fi
3645

3746
- if [[ $TEST_TARGET == 'branca_latest' ]]; then
@@ -42,3 +51,7 @@ script:
4251
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
4352
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
4453
fi
54+
55+
- if [[ $TEST_TARGET == 'notebooks' ]]; then
56+
py.test -vv tests/notebooks/test_notebooks.py ;
57+
fi

tests/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
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:

tests/plugins/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)