From 21ceda26610315565d951d2cd189c91dd65b4001 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Fri, 13 Dec 2013 17:11:54 -0500 Subject: [PATCH] Travis-CI configuration. --- .travis.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..6d4b4b852 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,38 @@ +language: cpp +compiler: + - gcc + - clang +env: + - TRAVIS_CVC4_CONFIG='production-cln --enable-language-bindings=java,c' + - TRAVIS_CVC4_CONFIG='debug --enable-language-bindings=java,c' + - TRAVIS_CVC4_DISTCHECK=yes +before_install: +# dhart/ppa is for cxxtest package, which doesn't appear officially until quantal + - travis_retry sudo apt-add-repository -y ppa:dhart/ppa + - travis_retry sudo apt-get update -qq + - travis_retry sudo apt-get install -qq libgmp-dev antlr3 libantlr3c-dev libboost-dev libboost-thread-dev swig2.0 libcln-dev cxxtest openjdk-7-jdk +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 + - echo $TRAVIS_CVC4_CONFIG + - normal="$(echo -e '\033[0m')" red="$normal$(echo -e '\033[01;31m')" green="$normal$(echo -e '\033[01;32m')" + - ./configure --enable-unit-testing --enable-proof --with-portfolio $TRAVIS_CVC4_CONFIG || (echo; cat builds/config.log; echo; echo "${red}CONFIGURE FAILED${normal}"; exit 1) +script: + - normal="$(echo -e '\033[0m')" red="$normal$(echo -e '\033[01;31m')" green="$normal$(echo -e '\033[01;32m')" + - if [ -n "$TRAVIS_CVC4_DISTCHECK" ]; then + make -j2 distcheck CVC4_REGRESSION_ARGS='--no-early-exit' || (echo; echo "${red}DISTCHECK FAILED${normal}"; echo; exit 1); + else + (make -j2 check CVC4_REGRESSION_ARGS='--no-early-exit' || (echo; echo "${red}BUILD/TEST FAILED${normal}"; echo; exit 1)) && + (make check BINARY=pcvc4 CVC4_REGRESSION_ARGS='--fallback-sequential --no-early-exit' || (echo; echo "${red}PORTFOLIO TEST FAILED${normal}"; echo; exit 1)) && + (make -j2 examples || (echo; echo "${red}COULD NOT BUILD EXAMPLES${normal}"; echo; exit 1)); + fi && + (echo; echo "${green}EVERYTHING SEEMED TO PASS!${normal}") +matrix: + fast_finish: true +notifications: + email: + recipients: mdeters@cs.nyu.edu + on_success: change + on_failure: always -- 2.30.2