Merge pull request #21 from pcc/ite-fix
[cvc5.git] / .travis.yml
1 language: cpp
2 cache: apt
3 compiler:
4 - gcc
5 - clang
6 env:
7 - TRAVIS_CVC4=yes TRAVIS_CVC4_CONFIG='production --enable-language-bindings=java,c'
8 - TRAVIS_CVC4=yes TRAVIS_CVC4_CONFIG='debug --enable-language-bindings=java,c'
9 - TRAVIS_CVC4=yes TRAVIS_CVC4_DISTCHECK=yes
10 - TRAVIS_LFSC=yes
11 - TRAVIS_LFSC=yes TRAVIS_LFSC_DISTCHECK=yes
12 before_install:
13 # dhart/ppa is for cxxtest package, which doesn't appear officially until quantal
14 - travis_retry sudo apt-add-repository -y ppa:dhart/ppa
15 - travis_retry sudo apt-get update -qq
16 - 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
17 before_script:
18 - export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
19 - export PATH=$PATH:$JAVA_HOME/bin
20 - export JAVA_CPPFLAGS=-I$JAVA_HOME/include
21 - ./autogen.sh
22 script:
23 - normal="$(echo -e '\033[0m')" red="$normal$(echo -e '\033[01;31m')" green="$normal$(echo -e '\033[01;32m')"
24 - if [ -n "$TRAVIS_CVC4" ]; then
25 if [ -n "$TRAVIS_CVC4_DISTCHECK" ]; then
26 (contrib/new-theory test_newtheory || (echo; echo "${red}NEWTHEORY FAILED${normal}"; echo; exit 1)) &&
27 (grep -q '^THEORIES *=.* test_newtheory' src/Makefile.am || (echo; echo "${red}NEWTHEORY FAILED${normal}"; echo; exit 1)) &&
28 (contrib/new-theory --alternate test_newtheory test_newalttheory || (echo; echo "${red}NEWTHEORY-ALTERNATE FAILED${normal}"; echo; exit 1)) &&
29 (grep -q '^THEORIES *=.* test_newalttheory' src/Makefile.am || (echo; echo "${red}NEWTHEORY-ALTERNATE FAILED${normal}"; echo; exit 1));
30 fi;
31 echo "CVC4 config - $TRAVIS_CVC4_CONFIG" &&
32 (./configure --enable-unit-testing --enable-proof --with-portfolio $TRAVIS_CVC4_CONFIG || (echo; cat builds/config.log; echo; echo "${red}CONFIGURE FAILED${normal}"; exit 1)) &&
33 if [ -n "$TRAVIS_CVC4_DISTCHECK" ]; then
34 make -j2 distcheck CVC4_REGRESSION_ARGS='--no-early-exit' || (echo; echo "${red}DISTCHECK (WITH NEWTHEORY TESTS) FAILED${normal}"; echo; exit 1);
35 else
36 (make -j2 check CVC4_REGRESSION_ARGS='--no-early-exit' || (echo; echo "${red}BUILD/TEST FAILED${normal}"; echo; exit 1)) &&
37 (make check BINARY=pcvc4 CVC4_REGRESSION_ARGS='--fallback-sequential --no-early-exit' RUN_REGRESSION_ARGS= || (echo; echo "${red}PORTFOLIO TEST FAILED${normal}"; echo; exit 1)) &&
38 (make -j2 examples || (echo; echo "${red}COULD NOT BUILD EXAMPLES${normal}"; echo; exit 1));
39 fi;
40 elif [ -n "$TRAVIS_LFSC" ]; then
41 cd proofs/lfsc_checker &&
42 (./configure || (echo; cat builds/config.log; echo; echo "${red}CONFIGURE FAILED${normal}"; exit 1)) &&
43 if [ -n "$TRAVIS_LFSC_DISTCHECK" ]; then
44 make -j2 distcheck || (echo; echo "${red}LFSC DISTCHECK FAILED${normal}"; echo; exit 1);
45 else
46 make -j2 || (echo; echo "${red}LFSC BUILD FAILED${normal}"; echo; exit 1);
47 fi;
48 else
49 echo "${red}Unknown Travis-CI configuration${normal}";
50 exit 1;
51 fi &&
52 (echo; echo "${green}EVERYTHING SEEMED TO PASS!${normal}")
53 matrix:
54 fast_finish: true
55 notifications:
56 email:
57 on_success: change
58 on_failure: always