about summary refs log tree commit diff homepage
path: root/.travis
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2015-04-02 22:48:08 +0100
committerDan Liew <daniel.liew@imperial.ac.uk>2015-04-03 16:34:07 +0100
commitb0c1d7291bbedf505529c648bc6c8b59cbef0544 (patch)
tree6e72094693ef2b4f5da4064a3f5a3a3290bb9ff3 /.travis
parent141f052a488c5b76adc658a185032c62d6244b9c (diff)
downloadklee-b0c1d7291bbedf505529c648bc6c8b59cbef0544.tar.gz
Upstream STP now depends on an external build of minisat. Attempt to
fix travis build of upstream STP and also how KLEE links against STP.
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/stp.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.travis/stp.sh b/.travis/stp.sh
index abc4e566..1c8fdb48 100755
--- a/.travis/stp.sh
+++ b/.travis/stp.sh
@@ -6,6 +6,18 @@ set -e
 STP_LOG="$(pwd)/stp-build.log"
 
 if [ "${STP_VERSION}" == "UPSTREAM" ]; then
+    # Build minisat
+    git clone https://github.com/niklasso/minisat
+    cd minisat
+    mkdir build
+    cd build
+    MINISAT_DIR=`pwd`
+    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+    make
+    sudo make install
+    cd ../../
+
+    # Build STP
     git clone --depth 1 git://github.com/stp/stp.git src
     mkdir build
     cd build