File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ Build Status] ( https://travis-ci.com/postgrespro/ptrack.svg?branch=master )] ( https://travis-ci.com/postgrespro/ptrack )
2
+ [ ![ codecov] ( https://codecov.io/gh/postgrespro/ptrack/branch/master/graph/badge.svg )] ( https://codecov.io/gh/postgrespro/ptrack )
2
3
[ ![ GitHub release] ( https://img.shields.io/github/v/release/postgrespro/ptrack?include_prereleases )] ( https://github.com/postgrespro/ptrack/releases/latest )
3
4
4
5
# ptrack
Original file line number Diff line number Diff line change 6
6
7
7
8
8
PG_SRC=$PWD /postgres
9
+ status=0
9
10
10
11
# # Here PG_VERSION is provided by postgres:X-alpine docker image
11
12
# curl "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2" -o postgresql.tar.bz2
@@ -82,10 +83,10 @@ if [ "$MODE" = "basic" ]; then
82
83
fi
83
84
84
85
if [ " $TEST_CASE " = " all" ]; then
85
- python -m unittest -v tests.ptrack
86
+ python -m unittest -v tests.ptrack || status= $?
86
87
else
87
88
for i in ` seq $TEST_REPEATS ` ; do
88
- python -m unittest -v tests.ptrack.PtrackTest.$TEST_CASE
89
+ python -m unittest -v tests.ptrack.PtrackTest.$TEST_CASE || status= $?
89
90
done
90
91
fi
91
92
@@ -97,3 +98,6 @@ gcov src/*.c src/*.h
97
98
98
99
# Send coverage stats to Codecov
99
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
You can’t perform that action at this time.
0 commit comments