File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 64
64
- OPENBLAS_NUM_THREADS=1
65
65
- PYTHONFAULTHANDLER=1
66
66
- PYTEST_ADDOPTS="-raR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
67
+ - RUN_PYTEST=1
67
68
- RUN_FLAKE8=
68
69
69
70
matrix :
70
71
include :
72
+ - name : flake8
73
+ python : 3.6
74
+ env :
75
+ - RUN_PYTEST=
76
+ - RUN_FLAKE8=1
77
+ - EXTRAREQS='-r requirements/testing/travis_flake8.txt'
71
78
- python : 3.5
72
79
dist : trusty
73
80
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
@@ -77,7 +84,6 @@ matrix:
77
84
env :
78
85
- DELETE_FONT_CACHE=1
79
86
- EXTRAREQS='-r requirements/testing/travis36.txt'
80
- - RUN_FLAKE8=1
81
87
- python : 3.7
82
88
sudo : true
83
89
- python : " nightly"
@@ -162,8 +168,10 @@ script:
162
168
# each script we want to run need to go in it's own section and the program you want
163
169
# to fail travis need to be the last thing called
164
170
- |
165
- echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
166
- python -mpytest
171
+ if [[ $RUN_PYTEST == 1 ]]; then
172
+ echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
173
+ python -mpytest
174
+ fi
167
175
- |
168
176
if [[ $RUN_FLAKE8 == 1 ]]; then
169
177
flake8 --statistics && echo "Flake8 passed without any issues!"
Original file line number Diff line number Diff line change 1
1
# Extra pip requirements for the travis python 3.6 build
2
2
3
- flake8
4
- flake8-per-file-ignores
5
3
ipykernel
6
4
nbconvert[execute]
7
5
pandas
Original file line number Diff line number Diff line change
1
+ # Extra pip requirements for the travis flake8 build
2
+
3
+ flake8
4
+ flake8-per-file-ignores
You can’t perform that action at this time.
0 commit comments