Skip to content

Commit 47d7351

Browse files
committed
CI: add codecov
1 parent cf06455 commit 47d7351

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ matrix:
5555
- NOSE_ARGS="not slow and not network and not disabled"
5656
- FULL_DEPS=true
5757
- CLIPBOARD=xsel
58-
- LINT=true
58+
- COVERAGE=true
5959
- python: 2.7
6060
env:
6161
- JOB_NAME: "27_slow"
@@ -73,7 +73,7 @@ matrix:
7373
env:
7474
- JOB_NAME: "27_build_test_conda"
7575
- JOB_TAG=_BUILD_TEST
76-
- NOSE_ARGS="not slow and not disabled --with-coverage"
76+
- NOSE_ARGS="not slow and not disabled"
7777
- FULL_DEPS=true
7878
- BUILD_TEST=true
7979
- python: 3.5
@@ -100,7 +100,7 @@ matrix:
100100
env:
101101
- JOB_NAME: "27_slow"
102102
- JOB_TAG=_SLOW
103-
- NOSE_ARGS="slow and not network and not disabled --with-coverage"
103+
- NOSE_ARGS="slow and not network and not disabled"
104104
- FULL_DEPS=true
105105
- python: 3.4
106106
env:
@@ -155,14 +155,17 @@ install:
155155
- ci/submit_ccache.sh
156156

157157
before_script:
158+
- source activate pandas && pip install codecov
158159
- ci/install_db.sh
159160

160161
script:
161162
- echo "script"
162163
- ci/run_build_docs.sh
163164
- ci/script.sh
164165
- ci/lint.sh
165-
# nothing here, or failed tests won't fail travis
166+
167+
after_success:
168+
- source activate pandas && codecov
166169

167170
after_script:
168171
- ci/install_test.sh

ci/script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ fi
1919

2020
if [ "$BUILD_TEST" ]; then
2121
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
2225
else
2326
echo nosetests --exe -A "$NOSE_ARGS" pandas --doctest-tests --with-xunit --xunit-file=/tmp/nosetests.xml
2427
nosetests --exe -A "$NOSE_ARGS" pandas --doctest-tests --with-xunit --xunit-file=/tmp/nosetests.xml

0 commit comments

Comments
 (0)