@@ -18,21 +18,9 @@ status=0
1818pg_config
1919
2020
21- # perform code checks if asked to
22- if [ " $LEVEL " = " scan-build" ]; then
23-
24- # perform static analyzis
25- scan-build --status-bugs make USE_PGXS=1 || status=$?
26-
27- # something's wrong, exit now!
28- if [ $status -ne 0 ]; then exit 1; fi
29-
30- # don't forget to "make clean"
31- make USE_PGXS=1 clean
32- fi
33-
34- # build with cassert + valgrind support
35- if [ " $LEVEL " = " hardcore" ] || [ " $LEVEL " = " nightmare" ]; then
21+ # rebuild PostgreSQL with cassert + valgrind support
22+ if [ " $LEVEL " = " hardcore" ] || \
23+ [ " $LEVEL " = " nightmare" ]; then
3624
3725 set -e
3826
@@ -76,6 +64,22 @@ if [ "$LEVEL" = "hardcore" ] || [ "$LEVEL" = "nightmare" ]; then
7664 set +e
7765fi
7866
67+ # perform code checks if asked to
68+ if [ " $LEVEL " = " scan-build" ] || \
69+ [ " $LEVEL " = " hardcore" ] || \
70+ [ " $LEVEL " = " nightmare" ]; then
71+
72+ # perform static analyzis
73+ scan-build --status-bugs make USE_PGXS=1 || status=$?
74+
75+ # something's wrong, exit now!
76+ if [ $status -ne 0 ]; then exit 1; fi
77+
78+ # don't forget to "make clean"
79+ make USE_PGXS=1 clean
80+ fi
81+
82+
7983# build and install extension (using PG_CPPFLAGS and SHLIB_LINK for gcov)
8084make USE_PGXS=1 PG_CPPFLAGS=" -coverage" SHLIB_LINK=" -coverage"
8185make USE_PGXS=1 install
0 commit comments