Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit305ec6f

Browse files
committed
Upload codecov only on successfull full tests set pass
1 parent30cc8d5 commit305ec6f

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 ];thenexit 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
foriin`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 ];thenexit 1;fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp