Skip to content

Commit

Permalink
customize coverage build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Jan 9, 2017
1 parent 0895301 commit 8a4414f
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: generic
sudo: false

default_script: &run_script

script: *run_script

matrix:
include:
- os: linux
Expand All @@ -9,62 +13,81 @@ matrix:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'g++-4.9' ]
script: *run_script
- os: linux
env: CXX=g++-5
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'g++-5' ]
script: *run_script
- os: linux
env: CXX=g++-6
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'g++-6' ]
script: *run_script
- os: linux
env: CXX=clang++ CXXFLAGS="-flto"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6','libstdc++-5-dev' ]
script: *run_script
- os: linux
env: CXX=clang++ CLANG_VERSION="4.0.0" CXXFLAGS="-flto"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6','libstdc++-5-dev' ]
script: *run_script
- os: linux
env: CXX=clang++ CXXFLAGS="-flto -fsanitize=cfi -fvisibility=hidden"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6','libstdc++-5-dev' ]
script: *run_script
- os: linux
env: CXX=clang++ CXXFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -fno-common"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6','libstdc++-5-dev' ]
script: *run_script
- os: linux
env: CXX=clang++ CXXFLAGS="-fsanitize=undefined"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6','libstdc++-5-dev' ]
script: *run_script
- os: linux
env: CXX=clang++ CXXFLAGS="-fsanitize=integer"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6','libstdc++-5-dev' ]
script: *run_script
- os: osx
osx_image: xcode7.3
script: *run_script
- os: linux
env: CXX=clang++ COVERAGE=true CXXFLAGS="--coverage"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6','libstdc++-5-dev' ]
- os: osx
osx_image: xcode7.3
script:
- make debug
- |
if [[ ${COVERAGE} == 'true' ]]; then
which llvm-cov
curl -S -f https://codecov.io/bash -o codecov
chmod +x codecov
./codecov -x "llvm-cov gcov" -Z
fi
cache: apt

Expand All @@ -77,16 +100,4 @@ before_install:
export PATH=$(./.mason/mason prefix clang++ ${CLANG_VERSION})/bin:${PATH}
./.mason/mason install binutils 2.27
export PATH=$(./.mason/mason prefix binutils 2.27)/bin:${PATH}
fi
script:
- make test
- make clean
- make debug
- |
if [[ ${COVERAGE} == 'true' ]]; then
which llvm-cov
curl -S -f https://codecov.io/bash -o codecov
chmod +x codecov
./codecov -x "llvm-cov gcov" -Z
fi

0 comments on commit 8a4414f

Please sign in to comment.