15 - ubuntu-toolchain-r-test
16 packages: &common_deps
31 # Clang does not play nice with ccache (at least the versions offered by
32 # Travis), use a workaround:
33 # https://github.com/travis-ci/travis-ci/issues/5383#issuecomment-224630584
35 if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" == "clang++" ]; then
36 export CFLAGS="-Qunused-arguments"
37 export CXXFLAGS="-Qunused-arguments"
38 sudo ln -s $(which ccache) /usr/lib/ccache/clang
39 sudo ln -s $(which ccache) /usr/lib/ccache/clang++
42 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
48 - sudo ${TRAVIS_PYTHON} -m pip install toml
49 - sudo ${TRAVIS_PYTHON} -m pip install Cython==0.29 --install-option="--no-cython-compile"
51 echo "travis_fold:start:load_script"
52 normal="$(echo -e '\033[0m')" red="$normal$(echo -e '\033[01;31m')" green="$normal$(echo -e '\033[01;32m')"
54 echo "CVC4 config - $TRAVIS_CVC4_CONFIG";
55 ./configure.sh --name=build --prefix=$(pwd)/build/install --unit-testing $TRAVIS_CVC4_CONFIG
59 echo "${red}${1}${normal}";
66 make -j2 check ARGS='-LE regress[1-4]' CVC4_REGRESSION_ARGS='--no-early-exit' || error "BUILD/UNIT/SYSTEM/REGRESSION TEST FAILED"
74 cmake .. -DCMAKE_PREFIX_PATH=$(pwd)/../../build/install/lib/cmake
76 ctest -j2 --output-on-failure || error "RUNNING EXAMPLES FAILED"
83 echo -e "#include <cvc4/cvc4.h>\nint main() { CVC4::ExprManager em; return 0; }" > /tmp/test.cpp
84 $CXX -std=c++11 /tmp/test.cpp -I install/include -L install/lib -lcvc4 -lcln || exit 1
88 echo "travis_fold:start:$1"
91 echo "travis_fold:end:$1"
93 [[ "$TRAVIS_CVC4_CONFIG" == *"symfpu"* ]] && CVC4_SYMFPU_BUILD="yes"
94 [ -n "$CVC4_SYMFPU_BUILD" ] && run contrib/get-symfpu
95 [ -n "$TRAVIS_CVC4" ] && [ -n "$TRAVIS_WITH_LFSC" ] && run contrib/get-lfsc-checker
96 [ -n "$TRAVIS_CVC4" ] && run configureCVC4
97 [ -n "$TRAVIS_CVC4" ] && run makeCheck
98 [ -z "$CVC4_SYMFPU_BUILD" ] && run makeInstallCheck && run makeExamples
99 [ -z "$TRAVIS_CVC4" ] && error "Unknown Travis-CI configuration"
100 echo "travis_fold:end:load_script"
101 - echo; echo "${green}EVERYTHING SEEMED TO PASS!${normal}"
110 - TRAVIS_WITH_LFSC=yes
111 - TRAVIS_CVC4_CONFIG="production --language-bindings=java --lfsc"
112 - TRAVIS_PYTHON=python
116 - TRAVIS_WITH_LFSC=yes
117 - TRAVIS_CVC4_CONFIG="debug --symfpu --lfsc --no-debug-symbols"
118 - TRAVIS_PYTHON=python
119 # Test python bindings
123 - TRAVIS_WITH_LFSC=yes
124 - TRAVIS_CVC4_CONFIG="production --python-bindings --python2"
125 - TRAVIS_PYTHON=python
129 - TRAVIS_WITH_LFSC=yes
130 - TRAVIS_CVC4_CONFIG="production --python-bindings --python3"
131 - TRAVIS_PYTHON=python3
137 - TRAVIS_WITH_LFSC=yes
138 - TRAVIS_CVC4_CONFIG="debug --symfpu --cln --gpl --no-debug-symbols --no-proofs"
139 - TRAVIS_PYTHON=python