From 50b6ae2d3d117d6e76f21238ac64b35fda501df3 Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Thu, 31 Aug 2017 22:25:27 -0700 Subject: [PATCH] Add GCC7 jobs to Travis (#1054) This commit adds two jobs (debug, with portfolio, test groups 0 and 1) to Travis. Both jobs are added using matrix.include, based on the example in the documentation: https://docs.travis-ci.com/user/languages/cpp/#GCC-on-Linux . This unfortunately requires some code duplication but there does not seem to be a way to do it in a much better fashion. --- .travis.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 58d7e6ac6..9726786d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,12 +39,16 @@ addons: - ant-optional - cxxtest - libreadline-dev +before_install: + - eval "${MATRIX_EVAL}" before_script: - export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 - export PATH=$PATH:$JAVA_HOME/bin - export JAVA_CPPFLAGS=-I$JAVA_HOME/include - ./autogen.sh script: + - ${CC} --version + - ${CXX} --version - | echo "travis_fold:start:load_script" normal="$(echo -e '\033[0m')" red="$normal$(echo -e '\033[01;31m')" green="$normal$(echo -e '\033[01;32m')" @@ -105,8 +109,32 @@ script: - echo; echo "${green}EVERYTHING SEEMED TO PASS!${normal}" matrix: fast_finish: true - # Rule for running Coverity Scan. include: + # Test with GCC7 + # Note: TRAVIS_CVC4_JAVA_API_TEST is only active for TEST_GROUP=0 because + # test groups only apply to regression tests (no need to repeat the Java + # tests for both groups). + - addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - *common_deps + - g++-7 + env: + - MATRIX_EVAL='CC=gcc-7 && CXX=g++-7' + - TRAVIS_CVC4=yes TRAVIS_CVC4_CHECK_PORTFOLIO=yes TRAVIS_WITH_LFSC=yes TRAVIS_CVC4_JAVA_API_TEST=yes TRAVIS_CVC4_CONFIG='debug --enable-language-bindings=java,c --with-lfsc --with-portfolio --enable-gpl' TEST_GROUP=0 + - addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - *common_deps + - g++-7 + env: + - MATRIX_EVAL='CC=gcc-7 && CXX=g++-7' + - TRAVIS_CVC4=yes TRAVIS_CVC4_CHECK_PORTFOLIO=yes TRAVIS_WITH_LFSC=yes TRAVIS_CVC4_CONFIG='debug --enable-language-bindings=java,c --with-lfsc --with-portfolio --enable-gpl' TEST_GROUP=1 + # Rule for running Coverity Scan. - os: linux compiler: gcc env: @@ -128,6 +156,7 @@ matrix: branch_pattern: coverity_scan after_failure: - cat /home/travis/build/CVC4/CVC4/cov-int/build-log.txt + notifications: email: on_success: change -- 2.30.2