File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ regression.out
88* .pyc
99* .gcda
1010* .gcno
11+ * .gcov
1112pg_pathman--1.2.sql
Original file line number Diff line number Diff line change 2020 - PGVERSION=9.5 CHECK_CODE=false
2121
2222script : bash ./travis/pg-travis-test.sh
23+
24+ after_success :
25+ - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ if [ $CHECK_CODE = "true" ]; then
6666fi
6767
6868# build pg_pathman (using CFLAGS_SL for gcov)
69- make USE_PGXS=1 PG_CONFIG=$config_path CFLAGS_SL=" $( $config_path --cflags_sl) -fprofile-arcs -ftest- coverage"
69+ make USE_PGXS=1 PG_CONFIG=$config_path CFLAGS_SL=" $( $config_path --cflags_sl) -coverage"
7070sudo make install USE_PGXS=1 PG_CONFIG=$config_path
7171
7272# set permission to write postgres locks
@@ -103,10 +103,9 @@ cd ../..
103103
104104set -u
105105
106- # finally report code coverage
107- sudo apt-get install -qq -y lcov
108- gem install coveralls-lcov
109- lcov --no-extern --capture --directory src --output-file coverage.info
110- coveralls-lcov coverage.info
106+
107+ # generate *.gcov files
108+ gcov src/* .c src/* .h
109+
111110
112111exit $status
You can’t perform that action at this time.
0 commit comments