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
8
8
* .pyc
9
9
* .gcda
10
10
* .gcno
11
+ * .gcov
11
12
pg_pathman--1.2.sql
Original file line number Diff line number Diff line change 20
20
- PGVERSION=9.5 CHECK_CODE=false
21
21
22
22
script : 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
66
66
fi
67
67
68
68
# 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"
70
70
sudo make install USE_PGXS=1 PG_CONFIG=$config_path
71
71
72
72
# set permission to write postgres locks
@@ -103,10 +103,9 @@ cd ../..
103
103
104
104
set -u
105
105
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
+
111
110
112
111
exit $status
You can’t perform that action at this time.
0 commit comments