-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
108 lines (97 loc) · 2.66 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: cpp
compiler:
- gcc
# - clang
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "bCbWf/B++9y5YDn/ugMKVaV+ZmGCNNtxeWiPFfl7D/xwaj3yjy9yILMkqLcmNNc7rMQruEVx371rn+VURcLIFQtCJ+Uqj4vKdx7kSnhe2oNxKBMViAZU04nLSBB9ZNiH6TKvfqm4eUFprQd6AJ6T0GmB//lC1AgKSKNwSUJBMKc="
matrix:
# These are used by .travis-cmake.sh to set a configuration
- STP_CONFIG=STATIC_LIB
- STP_CONFIG=DYNAMIC_LIB
- STP_CONFIG=DYNAMIC_AND_STATIC_LIB
- STP_CONFIG=STATIC_BINARY
- STP_CONFIG=RELEASE
- STP_CONFIG=NO_BOOST
- STP_CONFIG=CPP11
matrix:
include:
# Covertiy scan should only run once
- os: linux
compiler: gcc
env: COVERITY_SCAN=1 STP_CONFIG=DYNAMIC_LIB
allow_failures:
# Covertiy scan might fail
- env: COVERITY_SCAN=1 STP_CONFIG=DYNAMIC_LIB
addons:
coverity_scan:
project:
name: "stp/stp"
description: "Simple Theorem Prover"
notification_email: [email protected]
build_command_prepend: "cmake .."
build_command: "make"
branch_pattern: coverity_scan
before_install:
- sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa
- sudo apt-get update
install:
- sudo apt-get install -y
- sudo apt-get install -y cmake git zlib1g-dev
#
# get and install minisat
- mkdir minisat_git && cd minisat_git
- git clone --depth 1 https://github.com/stp/minisat
- cd minisat
- mkdir build && cd build
- cmake ..
- make
- sudo make install
- cd ../../..
#
# get LIT from pip
- sudo pip install lit
#
# Initialise our submodules
- git submodule init
- git submodule update
#
#set up build environment
- mkdir build && cd build
script:
- ../scripts/travis-cmake.sh ../
- make VERBOSE=1
- make check
- cd ../..
# Build example project. We assume that the build installed itself to the CMake
#- mkdir simple_example
#- cd simple_example
#- cmake -G "Unix Makefiles" -DUSE_STP_SHARED_LIBRARY=$( test -f ../stp/lib/libstp.so && echo ON || echo OFF) ../../examples/simple
#- make VERBOSE=1
#- ./stp-example
#
# get fuzzsmt
- sudo apt-get install -y default-jre
- git clone --depth 1 https://github.com/msoos/fuzzsmt.git
#
#lingeling
- git clone https://github.com/msoos/lingeling-ala lingeling
- cd lingeling
- ./configure
- make
- sudo cp lingeling /usr/bin/
- cd ..
#
# get boolector
- git clone --depth 1 https://github.com/msoos/boolector-1.5.118.git
- cd boolector-1.5.118
- ./configure
- make
- sudo cp boolector /usr/bin/
- cd ..
#
#fuzz
- cd stp/scripts/
- if [ "$STP_CONFIG" != "NO_BOOST" ]; then ./fuzz_test.py -n 20 --novalgrind; fi