Skip to content

Commit f3e3cfe

Browse files
committed
CI: upload coverage with flags
1 parent bd169dc commit f3e3cfe

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.travis.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ install:
108108
- echo "install done"
109109

110110
before_script:
111-
- source activate pandas && pip install codecov
112111
- ci/install_db_travis.sh
113112

114113
script:
@@ -120,9 +119,7 @@ script:
120119
- echo "script done"
121120

122121
after_success:
123-
- if [ "$COVERAGE" ]; then
124-
source activate pandas && codecov --file /tmp/cov-single.xml /tmp/cov-multiple.xml;
125-
fi
122+
- ci/upload_coverage.sh
126123

127124
after_script:
128125
- echo "after_script start"

ci/install_travis.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if [ "$LINT" ]; then
115115
fi
116116

117117
if [ "$COVERAGE" ]; then
118-
pip install coverage pytest-cov
118+
pip install coverage pytest-cov codecov
119119
fi
120120

121121
echo

ci/upload_coverage.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
if [ -z "$COVERAGE" ]; then
4+
echo "no upload of coverage is needed"
5+
exit 0
6+
fi
7+
8+
source activate pandas
9+
10+
codecov --file -c -F single /tmp/cov-single.xml
11+
codecov --file -c -F multiple /tmp/cov-multiple.xml

0 commit comments

Comments
 (0)