Skip to content

Commit 305ec6f

Browse files
committed
Upload codecov only on successfull full tests set pass
1 parent 30cc8d5 commit 305ec6f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

run_tests.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,20 @@ fi
8484

8585
if [ "$TEST_CASE" = "all" ]; then
8686
python -m unittest -v tests.ptrack || status=$?
87+
88+
# Get back to testdir
89+
cd ..
90+
91+
# Something went wrong, exit with code 1 now
92+
if [ $status -ne 0 ]; then exit 1; fi
93+
94+
# Generate *.gcov files
95+
gcov src/*.c src/*.h
96+
97+
# Send coverage stats to Codecov
98+
bash <(curl -s https://codecov.io/bash)
8799
else
88100
for i in `seq $TEST_REPEATS`; do
89101
python -m unittest -v tests.ptrack.PtrackTest.$TEST_CASE || status=$?
90102
done
91103
fi
92-
93-
# Get back to testdir
94-
cd ..
95-
96-
# Generate *.gcov files
97-
gcov src/*.c src/*.h
98-
99-
# Send coverage stats to Codecov
100-
bash <(curl -s https://codecov.io/bash)
101-
102-
# Something went wrong, exit with code 1
103-
if [ $status -ne 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy