File tree Expand file tree Collapse file tree 1 file changed +25
-15
lines changed Expand file tree Collapse file tree 1 file changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ matrix:
57
57
- python : 2.7
58
58
env :
59
59
- INSTALL_TYPE=requirements
60
+ - python : 2.7
61
+ env :
62
+ - STYLE=1
63
+ - python : 3.5
64
+ env :
65
+ - STYLE=1
60
66
before_install :
61
67
- source tools/travis_tools.sh
62
68
- virtualenv --python=python venv
@@ -98,22 +104,26 @@ install:
98
104
- export NIBABEL_DATA_DIR="$PWD/nibabel-data"
99
105
# command to run tests, e.g. python setup.py test
100
106
script :
101
- # Run styles first, only on core nibabel code.
102
- - flake8 nibabel
103
- # Change into an innocuous directory and find tests from installation
104
- - mkdir for_testing
105
- - cd for_testing
106
- - if [ "${COVERAGE}" == "1" ]; then
107
- cp ../.coveragerc .;
108
- COVER_ARGS="--with-coverage --cover-package nibabel";
109
- fi
110
- - if [ "$DOC_DOC_TEST" == "1" ]; then
111
- pip install sphinx numpydoc texext;
112
- cd ../doc;
113
- make html;
114
- make doctest;
107
+ - |
108
+ if [ "${STYLE}" == "1" ]; then
109
+ # Run styles only on core nibabel code.
110
+ flake8 nibabel
115
111
else
116
- nosetests --with-doctest $COVER_ARGS nibabel;
112
+ # Change into an innocuous directory and find tests from installation
113
+ mkdir for_testing
114
+ cd for_testing
115
+ if [ "${COVERAGE}" == "1" ]; then
116
+ cp ../.coveragerc .;
117
+ COVER_ARGS="--with-coverage --cover-package nibabel";
118
+ fi
119
+ if [ "$DOC_DOC_TEST" == "1" ]; then
120
+ pip install sphinx numpydoc texext;
121
+ cd ../doc;
122
+ make html;
123
+ make doctest;
124
+ else
125
+ nosetests --with-doctest $COVER_ARGS nibabel;
126
+ fi
117
127
fi
118
128
after_success :
119
129
- if [ "${COVERAGE}" == "1" ]; then coveralls; fi
You can’t perform that action at this time.
0 commit comments