From 8ad9d26c2c7293eae636863313f3d07a491649c1 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Mon, 12 Nov 2018 15:05:09 +0100 Subject: [PATCH] try using conditionals --- .travis.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index a364e37e6..887d4dc09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,12 +32,14 @@ matrix: - name: OpenMW (all) on MacOS xcode9.4 os: osx osx_image: xcode9.4 + if: branch != coverity_scan - name: OpenMW (all) on Ubuntu Trusty GCC-8 os: linux dist: trusty sudo: required env: - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" + if: branch != coverity_scan - name: OpenMW (openmw) on Ubuntu Trusty Clang-7 with Static Analysis os: linux dist: trusty @@ -46,6 +48,7 @@ matrix: - MATRIX_EVAL="CC=clang-7 && CXX=clang++-7" - ANALYZE="scan-build-7 --use-cc clang-7 --use-c++ clang++-7" - BUILD_OPENMW_CS="OFF" + if: branch != coverity_scan compiler: clang - name: OpenMW (openmw-cs) on Ubuntu Trusty Clang-7 with Static Analysis os: linux @@ -55,21 +58,27 @@ matrix: - MATRIX_EVAL="CC=clang-7 && CXX=clang++-7" - ANALYZE="scan-build-7 --use-cc clang-7 --use-c++ clang++-7" - BUILD_OPENMW="OFF" + if: branch != coverity_scan compiler: clang - name: OpenMW Coverity Scan os: linux dist: trusty sudo: required - coverity_scan: - project: - name: "OpenMW/openmw" - description: "" - branch_pattern: coverity_scan - notification_email: 720642+scrawl@users.noreply.github.com - build_command_prepend: - - "cov-configure --comptype gcc --compiler gcc-8 --template" - - "cmake . -DBUILD_OPENCS=FALSE -DBUILD_WIZARD=FALSE -DBUILD_UNITTESTS=FALSE -DBUILD_BSATOOL=FALSE -DBUILD_ESMTOOL=FALSE -DBUILD_MWINIIMPORTER=FALSE -DBUILD_ESSIMPORTER=FALSE -DBUILD_LAUNCHER=FALSE -DBUILD_MYGUI_PLUGIN=FALSE" - build_command: "make VERBOSE=1 -j3" + env: + - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" + if: branch = coverity_scan + addons: + coverity_scan: + project: + name: "OpenMW/openmw" + description: "" + branch_pattern: coverity_scan + notification_email: 720642+scrawl@users.noreply.github.com + build_command_prepend: + - "cov-configure --comptype gcc --compiler gcc-8 --template" + - "cmake . -DBUILD_OPENCS=FALSE -DBUILD_WIZARD=FALSE -DBUILD_UNITTESTS=FALSE -DBUILD_BSATOOL=FALSE -DBUILD_ESMTOOL=FALSE -DBUILD_MWINIIMPORTER=FALSE -DBUILD_ESSIMPORTER=FALSE -DBUILD_LAUNCHER=FALSE -DBUILD_MYGUI_PLUGIN=FALSE" + build_command: "make VERBOSE=1 -j3" + # allow_failures: # - name: OpenMW (openmw) on Ubuntu Trusty Clang-7 with Static Analysis