From 8bdb2085ef164760fba54e2187ed734f95199b8f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 17 Mar 2016 14:27:20 -0400 Subject: [PATCH] Travis CI: skip code coverage build for Clang. --- .travis.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 48d7d166f..d1a0b21b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 @@ -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