Skip to content

Commit 5d28f26

Browse files
committed
CI: fix coverage file location
CI: clean up some unused env variables Author: Jeff Reback <[email protected]> Closes #15792 from jreback/ci and squashes the following commits: 8100d6d [Jeff Reback] CI: fix coverage file location
1 parent 9d3554c commit 5d28f26

File tree

3 files changed

+11
-30
lines changed

3 files changed

+11
-30
lines changed

.travis.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,14 @@ matrix:
3939
- TEST_ARGS="--skip-slow --skip-network"
4040
- JOB_TAG=_OSX
4141
- TRAVIS_PYTHON_VERSION=3.5
42-
- CACHE_NAME="35_osx"
4342
- USE_CACHE=true
4443
- python: 2.7
4544
env:
4645
- PYTHON_VERSION=2.7
4746
- JOB_NAME: "27_slow_nnet_LOCALE"
4847
- TEST_ARGS="--only-slow --skip-network"
4948
- LOCALE_OVERRIDE="zh_CN.UTF-8"
50-
- FULL_DEPS=true
5149
- JOB_TAG=_LOCALE
52-
- CACHE_NAME="27_slow_nnet_LOCALE"
5350
- USE_CACHE=true
5451
addons:
5552
apt:
@@ -60,10 +57,8 @@ matrix:
6057
- PYTHON_VERSION=2.7
6158
- JOB_NAME: "27_nslow"
6259
- TEST_ARGS="--skip-slow"
63-
- FULL_DEPS=true
6460
- CLIPBOARD_GUI=gtk2
6561
- LINT=true
66-
- CACHE_NAME="27_nslow"
6762
- USE_CACHE=true
6863
addons:
6964
apt:
@@ -74,10 +69,8 @@ matrix:
7469
- PYTHON_VERSION=3.5
7570
- JOB_NAME: "35_nslow"
7671
- TEST_ARGS="--skip-slow --skip-network"
77-
- FULL_DEPS=true
7872
- CLIPBOARD=xsel
7973
- COVERAGE=true
80-
- CACHE_NAME="35_nslow"
8174
- USE_CACHE=true
8275
addons:
8376
apt:
@@ -96,46 +89,39 @@ matrix:
9689
packages:
9790
- libatlas-base-dev
9891
- gfortran
99-
# In allow_failures
92+
# In allow_failures
10093
- python: 2.7
10194
env:
10295
- PYTHON_VERSION=2.7
10396
- JOB_NAME: "27_slow"
10497
- JOB_TAG=_SLOW
10598
- TEST_ARGS="--only-slow --skip-network"
106-
- FULL_DEPS=true
107-
- CACHE_NAME="27_slow"
10899
- USE_CACHE=true
109-
# In allow_failures
100+
# In allow_failures
110101
- python: 2.7
111102
env:
112103
- PYTHON_VERSION=2.7
113104
- JOB_NAME: "27_build_test"
114105
- JOB_TAG=_BUILD_TEST
115106
- TEST_ARGS="--skip-slow"
116-
- FULL_DEPS=true
117107
- BUILD_TEST=true
118-
- CACHE_NAME="27_build_test"
119108
- USE_CACHE=true
120-
# In allow_failures
109+
# In allow_failures
121110
- python: 3.5
122111
env:
123112
- PYTHON_VERSION=3.5
124113
- JOB_NAME: "35_numpy_dev"
125114
- JOB_TAG=_NUMPY_DEV
126115
- TEST_ARGS="--skip-slow --skip-network"
127116
- PANDAS_TESTING_MODE="deprecate"
128-
- CACHE_NAME="35_numpy_dev"
129117
- USE_CACHE=true
130-
# In allow_failures
118+
# In allow_failures
131119
- python: 3.5
132120
env:
133121
- PYTHON_VERSION=3.5
134122
- JOB_NAME: "doc_build"
135-
- FULL_DEPS=true
136123
- DOC_BUILD=true
137124
- JOB_TAG=_DOC_BUILD
138-
- CACHE_NAME="doc_build"
139125
- USE_CACHE=true
140126
allow_failures:
141127
- python: 2.7
@@ -144,18 +130,14 @@ matrix:
144130
- JOB_NAME: "27_slow"
145131
- JOB_TAG=_SLOW
146132
- TEST_ARGS="--only-slow --skip-network"
147-
- FULL_DEPS=true
148-
- CACHE_NAME="27_slow"
149133
- USE_CACHE=true
150134
- python: 2.7
151135
env:
152136
- PYTHON_VERSION=2.7
153137
- JOB_NAME: "27_build_test"
154138
- JOB_TAG=_BUILD_TEST
155139
- TEST_ARGS="--skip-slow"
156-
- FULL_DEPS=true
157140
- BUILD_TEST=true
158-
- CACHE_NAME="27_build_test"
159141
- USE_CACHE=true
160142
- python: 3.5
161143
env:
@@ -164,16 +146,13 @@ matrix:
164146
- JOB_TAG=_NUMPY_DEV
165147
- TEST_ARGS="--skip-slow --skip-network"
166148
- PANDAS_TESTING_MODE="deprecate"
167-
- CACHE_NAME="35_numpy_dev"
168149
- USE_CACHE=true
169150
- python: 3.5
170151
env:
171152
- PYTHON_VERSION=3.5
172153
- JOB_NAME: "doc_build"
173-
- FULL_DEPS=true
174154
- DOC_BUILD=true
175155
- JOB_TAG=_DOC_BUILD
176-
- CACHE_NAME="doc_build"
177156
- USE_CACHE=true
178157

179158
before_install:
@@ -209,7 +188,9 @@ script:
209188
- echo "script done"
210189

211190
after_success:
212-
- source activate pandas && codecov
191+
- if [ "$COVERAGE" ]; then
192+
source activate pandas && codecov --file /tmp/cov-single.xml /tmp/cov-multiple.xml;
193+
fi
213194

214195
after_script:
215196
- echo "after_script start"

ci/script_multi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ if [ "$BUILD_TEST" ]; then
2727
cd /tmp
2828
python -c "import pandas; pandas.test(['-n 2'])"
2929
elif [ "$COVERAGE" ]; then
30-
echo pytest -s -n 2 -m "not single" --cov=pandas --cov-append --cov-report xml:/tmp/cov.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
31-
pytest -s -n 2 -m "not single" --cov=pandas --cov-append --cov-report xml:/tmp/cov.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
30+
echo pytest -s -n 2 -m "not single" --cov=pandas --cov-report xml:/tmp/cov-multiple.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
31+
pytest -s -n 2 -m "not single" --cov=pandas --cov-report xml:/tmp/cov-multiple.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
3232
else
3333
echo pytest -n 2 -m "not single" --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
3434
pytest -n 2 -m "not single" --junitxml=/tmp/multiple.xml $TEST_ARGS pandas # TODO: doctest

ci/script_single.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ fi
2020
if [ "$BUILD_TEST" ]; then
2121
echo "We are not running pytest as this is simply a build test."
2222
elif [ "$COVERAGE" ]; then
23-
echo pytest -s -m "single" --cov=pandas --cov-report xml:/tmp/cov.xml --junitxml=/tmp/single.xml $TEST_ARGS pandas
24-
pytest -s -m "single" --cov=pandas --cov-report xml:/tmp/cov.xml --junitxml=/tmp/single.xml $TEST_ARGS pandas
23+
echo pytest -s -m "single" --cov=pandas --cov-report xml:/tmp/cov-single.xml --junitxml=/tmp/single.xml $TEST_ARGS pandas
24+
pytest -s -m "single" --cov=pandas --cov-report xml:/tmp/cov-single.xml --junitxml=/tmp/single.xml $TEST_ARGS pandas
2525
else
2626
echo pytest -m "single" --junitxml=/tmp/single.xml $TEST_ARGS pandas
2727
pytest -m "single" --junitxml=/tmp/single.xml $TEST_ARGS pandas # TODO: doctest

0 commit comments

Comments
 (0)