Skip to content

Commit

Permalink
Travis CI: skip code coverage build for Clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
antiagainst committed Mar 17, 2016
1 parent 27b5e3e commit 8bdb208
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,25 @@ sudo: required
dist: trusty

env:
# Each line is a set of environment variables set before a build.
# Thus each line represents a different build configuration.
- SHADERC_BUILD_TYPE=Release SHADERC_CODE_COVERAGE=OFF
- SHADERC_BUILD_TYPE=Debug SHADERC_CODE_COVERAGE=OFF
- SHADERC_BUILD_TYPE=Debug SHADERC_CODE_COVERAGE=ON
- SHADERC_BUILD_TYPE=Release
- SHADERC_BUILD_TYPE=Debug

compiler:
- clang
- gcc

matrix:
fast_finish: true # Show final status immediately if a test fails.
exclude:
# Skip GCC builds on Mac OS X.
- os: osx
compiler: gcc
include:
# Additional GCC builds for code coverage.
- os: linux
compiler: gcc
env: SHADERC_CODE_COVERAGE=ON


cache:
apt: true
Expand Down Expand Up @@ -62,7 +66,7 @@ before_script:

script:
- mkdir build && cd build
- cmake -GNinja -DCMAKE_BUILD_TYPE=${SHADERC_BUILD_TYPE} -DENABLE_CODE_COVERAGE=${SHADERC_CODE_COVERAGE} ..
- cmake -GNinja -DCMAKE_BUILD_TYPE=${SHADERC_BUILD_TYPE:-Debug} -DENABLE_CODE_COVERAGE=${SHADERC_CODE_COVERAGE:-OFF} ..
- ninja
- ctest -j`nproc` --output-on-failure

Expand Down

0 comments on commit 8bdb208

Please sign in to comment.