File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,19 @@ matrix:
5
5
- python : 2.7
6
6
env :
7
7
- COVERAGE=false
8
+ - ARGS="--cov --verbose"
8
9
- python : 3.4
9
10
env :
10
11
- COVERAGE=false
12
+ - ARGS="--mpl --cov --verbose"
11
13
- python : 3.5
12
14
env :
13
15
- COVERAGE=false
16
+ - ARGS="--mpl --cov --verbose"
14
17
- python : 3.5
15
18
env :
16
19
- COVERAGE=true
20
+ - ARGS="--mpl --cov --verbose"
17
21
18
22
before_install :
19
23
@@ -32,13 +36,14 @@ install:
32
36
33
37
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
34
38
- source activate test
35
- - conda install --yes numpy nose matplotlib coverage docopt requests pyyaml
39
+ - conda install --yes numpy matplotlib coverage docopt requests pyyaml
40
+ - conda install --yes --channel=conda-forge pytest pytest-cov pytest-mpl
36
41
- if [ ${COVERAGE} = true ]; then conda install scipy --yes; fi
37
42
- pip install coveralls
38
43
- pip install .
39
44
40
45
script :
41
- - python check_probscale.py --with-coverage --cover-package=probscale --verbose
46
+ - python check_probscale.py ${ARGS}
42
47
43
48
after_success :
44
49
- if [ ${COVERAGE} = true ]; then coveralls; fi
Original file line number Diff line number Diff line change
1
+ import sys
1
2
import matplotlib
2
3
matplotlib .use ('agg' )
3
4
4
- import nose
5
- nose .main ()
5
+ import pytest
6
+ status = pytest .main (sys .argv [1 :])
7
+ sys .exit (status )
You can’t perform that action at this time.
0 commit comments