Skip to content

Commit bd2c665

Browse files
author
Norbert Manthey
committed
build: test multiple SAT solvers during CI
Besides the usual test with Minisat, also compile with glucose, and test whether compilation with IPASIR works. Perform tests and regression testing for the two variants as well. Furthermore, if libzip and zlib and not inizialized properly, any build will fail. Hence, these targets are added as well.
1 parent 04cac1a commit bd2c665

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.travis.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ matrix:
4242
before_install:
4343
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
4444
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
45-
env: COMPILER=g++-5
45+
env: COMPILER=g++-5 STATICLINK=-static
4646

4747
# Ubuntu Linux with glibc using clang++-3.7
4848
- os: linux
@@ -61,10 +61,12 @@ matrix:
6161
before_install:
6262
- mkdir bin ; ln -s /usr/bin/clang-3.7 bin/gcc
6363
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
64-
env: COMPILER=clang++-3.7
64+
env: COMPILER=clang++-3.7 STATICLINK=-static
6565

6666
- env: NAME="CPP-LINT"
6767
script: scripts/travis_lint.sh || true
68+
- env: NAME="LIB-ZIP"
69+
script: cd src; make zlib-download && make libzip-download && make libzip-build
6870

6971
script:
7072
- if [ -L bin/gcc ] ; then export PATH=$PWD/bin:$PATH ; fi ;
@@ -75,4 +77,19 @@ script:
7577
COMMAND="env UBSAN_OPTIONS=print_stacktrace=1 make -C regression test" &&
7678
eval ${PRE_COMMAND} ${COMMAND} &&
7779
COMMAND="make -C src CXX=$COMPILER CXXFLAGS=$FLAGS -j2 cegis.dir clobber.dir memory-models.dir musketeer.dir" &&
78-
eval ${PRE_COMMAND} ${COMMAND}
80+
eval ${PRE_COMMAND} ${COMMAND} &&
81+
COMMAND="make -C src clean" &&
82+
eval ${PRE_COMMAND} ${COMMAND} &&
83+
COMMAND="make -C src glucose-download" &&
84+
eval ${PRE_COMMAND} ${COMMAND} &&
85+
COMMAND="make -C src -j2 GLUCOSE=../../glucose-syrup LINKFLAGS=$STATICLINK" &&
86+
eval ${PRE_COMMAND} ${COMMAND} &&
87+
COMMAND="make -C regression test" &&
88+
eval ${PRE_COMMAND} ${COMMAND} &&
89+
COMMAND="touch src/solvers/sat/satcheck.h" &&
90+
eval ${PRE_COMMAND} ${COMMAND} &&
91+
COMMAND="make ipasir-build" &&
92+
eval ${PRE_COMMAND} ${COMMAND} &&
93+
COMMAND="make -C src -j2 IPASIR=../../ipasir LIBSOLVER=$(pwd)/ipasir/libipasir.a" &&
94+
eval ${PRE_COMMAND} ${COMMAND} &&
95+
COMMAND="make -C regression test"

0 commit comments

Comments
 (0)