13 # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
14 # via the "travis encrypt" command using the project repo's public key
15 - secure: "fRfdzYwV10VeW5tVSvy5qpR8ZlkXepR7XWzCulzlHs9SRI2YY20BpzWRjyMBiGu2t7IeJKT7qdjq/CJOQEM8WS76ON7QJ1iymKaRDewDs3OhyPJ71fsFKEGgLky9blk7I9qZh23hnRVECj1oJAVry9IK04bc2zyIEjUYpjRkUAQ="
18 - TRAVIS_CVC4=yes TRAVIS_CVC4_CHECK_PORTFOLIO=yes TRAVIS_WITH_LFSC=yes TRAVIS_CVC4_JAVA_API_TEST=yes TRAVIS_CVC4_CONFIG='production --enable-language-bindings=java,c --with-lfsc --with-portfolio'
19 - 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' TEST_GROUP=0
20 - 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' TEST_GROUP=1
21 - TRAVIS_CVC4=yes TRAVIS_CVC4_CONFIG='--disable-proof'
22 - TRAVIS_CVC4=yes TRAVIS_CVC4_DISTCHECK=yes TRAVIS_CVC4_CONFIG='--enable-proof'
26 - ubuntu-toolchain-r-test
27 packages: &common_deps
39 - export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
40 - export PATH=$PATH:$JAVA_HOME/bin
41 - export JAVA_CPPFLAGS=-I$JAVA_HOME/include
45 echo "travis_fold:start:load_script"
46 normal="$(echo -e '\033[0m')" red="$normal$(echo -e '\033[01;31m')" green="$normal$(echo -e '\033[01;32m')"
48 echo "CVC4 config - $TRAVIS_CVC4_CONFIG";
49 ./configure --enable-unit-testing $TRAVIS_CVC4_CONFIG ||
50 (echo; echo "Trying to print config.log"; cat builds/config.log; error "CONFIGURE FAILED");
54 echo "${red}${1}${normal}";
59 make V=1 -j2 distcheck CVC4_REGRESSION_ARGS='--no-early-exit' ||
60 error "DISTCHECK (WITH NEWTHEORY TESTS) FAILED";
63 make V=1 -j2 check CVC4_REGRESSION_ARGS='--no-early-exit' || error "BUILD/TEST FAILED";
65 makeCheckPortfolio() {
66 make V=1 -j2 check BINARY=pcvc4 CVC4_REGRESSION_ARGS='--fallback-sequential --no-early-exit' RUN_REGRESSION_ARGS= ||
67 error "PORTFOLIO TEST FAILED";
76 make V=1 -j2 examples || error "COULD NOT BUILD EXAMPLES${normal}";
79 contrib/new-theory test_newtheory || error "NEWTHEORY FAILED";
80 grep -q '^THEORIES *=.* test_newtheory' src/Makefile.theories || error "NEWTHEORY FAILED";
81 contrib/new-theory --alternate test_newtheory test_newalttheory || error "NEWTHEORY-ALTERNATE FAILED";
82 grep -q '^THEORIES *=.* test_newalttheory' src/Makefile.theories || error "NEWTHEORY-ALTERNATE FAILED";
85 echo "travis_fold:start:$1"
88 echo "travis_fold:end:$1"
90 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_WITH_LFSC" ] && run contrib/get-lfsc-checker
91 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_CVC4_DISTCHECK" ] && run addNewTheoryTest
92 [ -n "$TRAVIS_CVC4" ] && run configureCVC4
93 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_CVC4_DISTCHECK" ] && run makeDistcheck
94 [ -n "$TRAVIS_CVC4" ] && [ -z "$TRAVIS_CVC4_DISTCHECK" ] && run makeCheck && run makeExamples
95 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_CVC4_CHECK_PORTFOLIO" ] && run makeCheckPortfolio
96 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_CVC4_JAVA_API_TEST" ] && run JavaApiTest
97 [ -n "$TRAVIS_COVERITY" ] && echo "Running coverity. Skipping the normal build."
98 [ -z "$TRAVIS_CVC4" ] && [ -z "$TRAVIS_COVERITY" ] && error "Unknown Travis-CI configuration"
99 echo "travis_fold:end:load_script"
100 - echo; echo "${green}EVERYTHING SEEMED TO PASS!${normal}"
103 # Rule for running Coverity Scan.
107 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-
109 - TRAVIS_COVERITY=yes CVC4_REGRESSION_ARGS='--no-early-exit'
111 # Need to duplicate as addons will be over written.
114 - ubuntu-toolchain-r-test
120 description: "Build submitted via Travis CI"
121 notification_email: timothy.alan.king@gmail.com
122 build_command_prepend: "./autogen.sh; ./configure --enable-unit-testing --enable-proof"
123 build_command: "make V=1 -j4"
124 branch_pattern: coverity_scan
126 - cat /home/travis/build/CVC4/CVC4/cov-int/build-log.txt