Skip to content

Commit 8863565

Browse files
committed
Add travis build for coverage
1 parent e2d44c9 commit 8863565

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,36 @@ jobs:
146146
- EXTRA_CXXFLAGS="-DDEBUG"
147147
script: echo "Not running any tests for a debug build."
148148

149+
# Ubuntu Linux with glibc using g++-7, coverage mode
150+
- stage: Test different OS/CXX/Flags
151+
os: linux
152+
sudo: false
153+
compiler: gcc
154+
cache: ccache
155+
addons:
156+
apt:
157+
sources:
158+
- ubuntu-toolchain-r-test
159+
packages:
160+
- g++-7
161+
- jq
162+
- gdb
163+
before_install:
164+
- mkdir bin
165+
- ln -s /usr/bin/gcc-7 bin/gcc
166+
- ln -s /usr/bin/g++-7 bin/g++
167+
install:
168+
- cmake -H. -Bbuild '-Denable_coverage=1' '-Dparallel_tests=2' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-7'
169+
- git submodule update --init --recursive
170+
- make -C build coverage
171+
env:
172+
- COMPILER="ccache /usr/bin/g++-7"
173+
- EXTRA_CXXFLAGS="-DDEBUG"
174+
script: echo "Running any tests for a debug build."
175+
after_success:
176+
# codecov
177+
- bash <(curl -s https://codecov.io/bash)
178+
149179
# Ubuntu Linux with glibc using clang++-7, debug mode, disable USE_DSTRING
150180
- stage: Test different OS/CXX/Flags
151181
os: linux

0 commit comments

Comments
 (0)