15 # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
16 # via the "travis encrypt" command using the project repo's public key
17 - secure: "fRfdzYwV10VeW5tVSvy5qpR8ZlkXepR7XWzCulzlHs9SRI2YY20BpzWRjyMBiGu2t7IeJKT7qdjq/CJOQEM8WS76ON7QJ1iymKaRDewDs3OhyPJ71fsFKEGgLky9blk7I9qZh23hnRVECj1oJAVry9IK04bc2zyIEjUYpjRkUAQ="
19 - TRAVIS_CVC4=yes TRAVIS_CVC4_CHECK_PORTFOLIO=yes TRAVIS_CVC4_CONFIG='production --enable-language-bindings=java,c --enable-proof --with-portfolio'
20 - TRAVIS_CVC4=yes TRAVIS_CVC4_CHECK_PORTFOLIO=yes TRAVIS_CVC4_CONFIG='debug --enable-language-bindings=java,c --enable-proof --with-portfolio'
21 - TRAVIS_CVC4=yes TRAVIS_CVC4_CONFIG='--disable-proof'
22 - TRAVIS_CVC4=yes TRAVIS_CVC4_DISTCHECK=yes TRAVIS_CVC4_CONFIG='--enable-proof'
24 - TRAVIS_LFSC=yes TRAVIS_LFSC_DISTCHECK=yes
28 - ubuntu-toolchain-r-test
39 # Download and cache a copy of cxxtest until it appears officially in quantal.
40 - wget http://sourceforge.net/projects/cxxtest/files/cxxtest/4.3/cxxtest-4.3.tar.gz
41 - tar -xzvf cxxtest-4.3.tar.gz
42 - cp -vRT cxxtest-4.3 $HOME/cxxtest
44 - export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
45 - export PATH=$PATH:$JAVA_HOME/bin
46 - export JAVA_CPPFLAGS=-I$JAVA_HOME/include
50 echo "travis_fold:start:load_script"
51 normal="$(echo -e '\033[0m')" red="$normal$(echo -e '\033[01;31m')" green="$normal$(echo -e '\033[01;32m')"
53 echo "CVC4 config - $TRAVIS_CVC4_CONFIG";
54 ./configure --enable-unit-testing $TRAVIS_CVC4_CONFIG CXXTEST=$HOME/cxxtest ||
55 (echo; echo "Trying to print config.log"; cat builds/config.log; error "CONFIGURE FAILED");
59 echo "${red}${1}${normal}";
64 make V=1 -j2 distcheck CVC4_REGRESSION_ARGS='--no-early-exit' DISTCHECK_CONFIGURE_FLAGS="CXXTEST=$HOME/cxxtest" ||
65 error "DISTCHECK (WITH NEWTHEORY TESTS) FAILED";
68 make V=1 -j2 check CVC4_REGRESSION_ARGS='--no-early-exit' || error "BUILD/TEST FAILED";
70 makeCheckPortfolio() {
71 make V=1 -j2 check BINARY=pcvc4 CVC4_REGRESSION_ARGS='--fallback-sequential --no-early-exit' RUN_REGRESSION_ARGS= ||
72 error "PORTFOLIO TEST FAILED";
75 make V=1 -j2 examples || error "COULD NOT BUILD EXAMPLES${normal}";
78 contrib/new-theory test_newtheory || error "NEWTHEORY FAILED";
79 grep -q '^THEORIES *=.* test_newtheory' src/Makefile.theories || error "NEWTHEORY FAILED";
80 contrib/new-theory --alternate test_newtheory test_newalttheory || error "NEWTHEORY-ALTERNATE FAILED";
81 grep -q '^THEORIES *=.* test_newalttheory' src/Makefile.theories || error "NEWTHEORY-ALTERNATE FAILED";
84 cd proofs/lfsc_checker &&
85 (./configure || (echo; cat builds/config.log; echo; echo "${red}CONFIGURE FAILED${normal}"; exit 1)) &&
86 if [ -n "$TRAVIS_LFSC_DISTCHECK" ]; then
87 make -j2 distcheck || (echo; echo "${red}LFSC DISTCHECK FAILED${normal}"; echo; exit 1);
89 make -j2 || (echo; echo "${red}LFSC BUILD FAILED${normal}"; echo; exit 1);
93 echo "travis_fold:start:$1"
96 echo "travis_fold:end:$1"
98 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_CVC4_DISTCHECK" ] && run addNewTheoryTest
99 [ -n "$TRAVIS_CVC4" ] && run configureCVC4
100 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_CVC4_DISTCHECK" ] && run makeDistcheck
101 [ -n "$TRAVIS_CVC4" ] && [ -z "$TRAVIS_CVC4_DISTCHECK" ] && run makeCheck && run makeExamples
102 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_CVC4_CHECK_PORTFOLIO" ] && run makeCheckPortfolio
103 [ -n "$TRAVIS_LFSC" ] && run LFSCchecks
104 [ -n "$TRAVIS_COVERITY" ] && echo "Running coverity. Skipping the normal build."
105 [ -z "$TRAVIS_CVC4" ] && [ -z "$TRAVIS_LFSC" ] && [ -z "$TRAVIS_COVERITY" ] && error "Unknown Travis-CI configuration"
106 echo "travis_fold:end:load_script"
107 - echo; echo "${green}EVERYTHING SEEMED TO PASS!${normal}"
110 # Rule for running Coverity Scan.
114 before_install: echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
116 - TRAVIS_COVERITY=yes CVC4_REGRESSION_ARGS='--no-early-exit' CXXTEST="$HOME/cxxtest"
118 # Need to duplicate as addons will be over written.
121 - ubuntu-toolchain-r-test
125 - libboost-thread-dev
134 description: "Build submitted via Travis CI"
135 notification_email: timothy.alan.king@gmail.com
136 build_command_prepend: "./autogen.sh; ./configure --enable-unit-testing --enable-proof"
137 build_command: "make V=1 -j4"
138 branch_pattern: coverity_scan
140 - cat /home/travis/build/CVC4/CVC4/cov-int/build-log.txt