Skip to content

Commit 20ed60b

Browse files
committed
add support for Codecov.io
1 parent ee8c074 commit 20ed60b

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ regression.out
88
*.pyc
99
*.gcda
1010
*.gcno
11+
*.gcov
1112
pg_pathman--1.2.sql

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ env:
2020
- PGVERSION=9.5 CHECK_CODE=false
2121

2222
script: bash ./travis/pg-travis-test.sh
23+
24+
after_success:
25+
- bash <(curl -s https://codecov.io/bash)

travis/pg-travis-test.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [ $CHECK_CODE = "true" ]; then
6666
fi
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"
7070
sudo make install USE_PGXS=1 PG_CONFIG=$config_path
7171

7272
# set permission to write postgres locks
@@ -103,10 +103,9 @@ cd ../..
103103

104104
set -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

112111
exit $status

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy