Skip to content

Commit 2d89da9

Browse files
committed
update teardown script
1 parent be383f7 commit 2d89da9

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.circle/codecov.sh

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ set -e # Exit immediately if a command exits with a non-zero status.
99
set -u # Treat unset variables as an error when substituting.
1010
set -x # Print command traces before executing command.
1111

12-
# Place py.test reports in folders
13-
for f in $( find $SCRATCH/ -name "pytest*.xml" ); do
14-
folder=$( basename ${f:: -4} )
15-
mkdir -p ${CIRCLE_TEST_REPORTS}/$folder
16-
cp $f ${CIRCLE_TEST_REPORTS}/$folder/pytest.xml
17-
done
18-
1912
# Send coverage data to codecov.io
2013
curl -so codecov.io https://codecov.io/bash
2114
chmod 755 codecov.io
@@ -25,7 +18,8 @@ find "${SCRATCH}/" -name 'coverage*.xml' -maxdepth 1 -print0 | \
2518
find "${SCRATCH}/" -name 'smoketest*.xml' -maxdepth 1 -print0 | \
2619
xargs -0 -I file ./codecov.io -f file -t "${CODECOV_TOKEN}" -F smoketests
2720

28-
# Place coverage in the correct folders
29-
mkdir -p ${CIRCLE_TEST_REPORTS}/unittests ${CIRCLE_TEST_REPORTS}/smoketest
30-
cp ${SCRATCH}/coverage*.xml ${CIRCLE_TEST_REPORTS}/unittests/ || true
31-
cp ${SCRATCH}/smoketest*.xml ${CIRCLE_TEST_REPORTS}/smoketest/ || true
21+
# Place test and coverage in the tests folder
22+
mkdir -p ${CIRCLE_TEST_REPORTS}/tests/
23+
cp ${SCRATCH}/pytest*.xml ${CIRCLE_TEST_REPORTS}/tests/ || true
24+
cp ${SCRATCH}/coverage*.xml ${CIRCLE_TEST_REPORTS}/tests/ || true
25+
cp ${SCRATCH}/smoketest*.xml ${CIRCLE_TEST_REPORTS}/tests/ || true

0 commit comments

Comments
 (0)