File tree 4 files changed +24
-16
lines changed
4 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -36,26 +36,26 @@ matrix:
36
36
- LOCALE_OVERRIDE="zh_CN.GB18030"
37
37
- FULL_DEPS=true
38
38
- JOB_TAG=_LOCALE
39
- - BUILD_TYPE=conda
40
39
- python : 2.7
41
40
env :
42
41
- JOB_NAME : " 27_nslow"
43
42
- NOSE_ARGS="not slow and not disabled"
44
43
- FULL_DEPS=true
45
44
- CLIPBOARD_GUI=gtk2
45
+ - LINT=true
46
46
- python : 3.4
47
47
env :
48
48
- JOB_NAME : " 34_nslow"
49
49
- NOSE_ARGS="not slow and not disabled"
50
50
- FULL_DEPS=true
51
51
- CLIPBOARD=xsel
52
- - BUILD_TYPE=conda
53
52
- python : 3.5
54
53
env :
55
54
- JOB_NAME : " 35_nslow"
56
55
- NOSE_ARGS="not slow and not network and not disabled"
57
56
- FULL_DEPS=true
58
57
- CLIPBOARD=xsel
58
+ - COVERAGE=true
59
59
- python : 2.7
60
60
env :
61
61
- JOB_NAME : " 27_slow"
@@ -87,14 +87,12 @@ matrix:
87
87
- JOB_NAME : " 27_nslow_nnet_COMPAT"
88
88
- NOSE_ARGS="not slow and not network and not disabled"
89
89
- LOCALE_OVERRIDE="it_IT.UTF-8"
90
- - BUILD_TYPE=conda
91
90
- INSTALL_TEST=true
92
91
- JOB_TAG=_COMPAT
93
92
- python : 2.7
94
93
env :
95
94
- JOB_NAME : " doc_build"
96
95
- FULL_DEPS=true
97
- - BUILD_TYPE=conda
98
96
- DOC_BUILD=true # if rst files were changed, build docs in parallel with tests
99
97
- JOB_TAG=_DOC_BUILD
100
98
allow_failures :
@@ -129,14 +127,12 @@ matrix:
129
127
- JOB_NAME : " 27_nslow_nnet_COMPAT"
130
128
- NOSE_ARGS="not slow and not network and not disabled"
131
129
- LOCALE_OVERRIDE="it_IT.UTF-8"
132
- - BUILD_TYPE=conda
133
130
- INSTALL_TEST=true
134
131
- JOB_TAG=_COMPAT
135
132
- python : 2.7
136
133
env :
137
134
- JOB_NAME : " doc_build"
138
135
- FULL_DEPS=true
139
- - BUILD_TYPE=conda
140
136
- DOC_BUILD=true
141
137
- JOB_TAG=_DOC_BUILD
142
138
@@ -159,14 +155,17 @@ install:
159
155
- ci/submit_ccache.sh
160
156
161
157
before_script :
158
+ - source activate pandas && pip install codecov
162
159
- ci/install_db.sh
163
160
164
161
script :
165
162
- echo "script"
166
163
- ci/run_build_docs.sh
167
164
- ci/script.sh
168
165
- ci/lint.sh
169
- # nothing here, or failed tests won't fail travis
166
+
167
+ after_success :
168
+ - source activate pandas && codecov
170
169
171
170
after_script :
172
171
- ci/install_test.sh
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ conda info -a || exit 1
85
85
86
86
# build deps
87
87
REQ=" ci/requirements-${TRAVIS_PYTHON_VERSION}${JOB_TAG} .build"
88
- time conda create -n pandas python=$TRAVIS_PYTHON_VERSION nose flake8 || exit 1
88
+ time conda create -n pandas python=$TRAVIS_PYTHON_VERSION nose coverage flake8 || exit 1
89
89
90
90
# may have additional installation instructions for this build
91
91
INSTALL=" ci/install-${TRAVIS_PYTHON_VERSION}${JOB_TAG} .sh"
Original file line number Diff line number Diff line change @@ -5,13 +5,19 @@ echo "inside $0"
5
5
source activate pandas
6
6
7
7
RET=0
8
- for path in ' core' ' io' ' stats' ' compat' ' sparse' ' tools' ' tseries' ' tests' ' computation' ' util'
9
- do
10
- echo " linting -> pandas/$path "
11
- flake8 pandas/$path --filename ' *.py'
12
- if [ $? -ne " 0" ]; then
13
- RET=1
14
- fi
15
- done
8
+
9
+ if [ " $LINT " ]; then
10
+ echo " Linting"
11
+ for path in ' core' ' io' ' stats' ' compat' ' sparse' ' tools' ' tseries' ' tests' ' computation' ' util'
12
+ do
13
+ echo " linting -> pandas/$path "
14
+ flake8 pandas/$path --filename ' *.py'
15
+ if [ $? -ne " 0" ]; then
16
+ RET=1
17
+ fi
18
+ done
19
+ else
20
+ echo " NOT Linting"
21
+ fi
16
22
17
23
exit $RET
Original file line number Diff line number Diff line change 19
19
20
20
if [ " $BUILD_TEST " ]; then
21
21
echo " We are not running nosetests as this is simply a build test."
22
+ elif [ " $COVERAGE " ]; then
23
+ echo nosetests --exe -A " $NOSE_ARGS " pandas --with-coverage --with-xunit --xunit-file=/tmp/nosetests.xml
24
+ nosetests --exe -A " $NOSE_ARGS " pandas --with-coverage --cover-package=pandas --cover-tests --with-xunit --xunit-file=/tmp/nosetests.xml
22
25
else
23
26
echo nosetests --exe -A " $NOSE_ARGS " pandas --doctest-tests --with-xunit --xunit-file=/tmp/nosetests.xml
24
27
nosetests --exe -A " $NOSE_ARGS " pandas --doctest-tests --with-xunit --xunit-file=/tmp/nosetests.xml
You can’t perform that action at this time.
0 commit comments