Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'remotes/isaachier/add-travis-builds' in…
Browse files Browse the repository at this point in the history
…to local-dependencies-support
  • Loading branch information
ringerc committed Feb 13, 2018
2 parents 2bb946b + 08c9c65 commit 2022642
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ sudo: true
dist: trusty
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- lcov
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- COVERAGE=ON
- os: linux
addons:
apt:
Expand All @@ -13,7 +24,7 @@ matrix:
- lcov
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- COVERAGE=ON
- NO_HUNTER=ON
- os: linux
addons:
apt:
Expand All @@ -36,7 +47,7 @@ before_install:
script:
- ./scripts/build.sh
after_success:
- for f in $(find build -name '*.gcno'); do gcov-6 $f; done
- for f in $(find build -name '*.gcno'); do gcov-7 $f; done
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage
reports"
cache:
Expand Down
14 changes: 12 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ function working() {

mkdir -p build
cd build || exit

cmake_opts="-DCMAKE_BUILD_TYPE=Debug"
if [ "x$COVERAGE" != "x" ]; then
cmake -DCMAKE_BUILD_TYPE=Debug -DJAEGERTRACING_COVERAGE=ON ..
cmake_opts="$cmake_opts -DJAEGERTRACING_COVERAGE=ON"
else
cmake -DCMAKE_BUILD_TYPE=Debug -DJAEGERTRACING_COVERAGE=OFF ..
cmake_opts="$cmake_opts -DJAEGERTRACING_COVERAGE=OFF"
fi

if [ "x$NO_HUNTER" != "x" ]; then
cmake_opts="$cmake_opts -DHUNTER_ENABLED=OFF"
else
cmake_opts="$cmake_opts -DHUNTER_ENABLED=ON"
fi

cmake $cmake_opts ..

if make -j3 UnitTest; then
true
else
Expand Down

0 comments on commit 2022642

Please sign in to comment.