forked from SRI-CSL/yices2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 974 Bytes
/
.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
language: c
dist: xenial
compiler:
- gcc
- clang
env:
matrix:
- BUILD_TYPE=debug
ENABLE_COVERAGE=OFF
CONFIGURE_FLAGS="--enable-mcsat"
- BUILD_TYPE=debug
ENABLE_COVERAGE=OFF
CONFIGURE_FLAGS="--enable-thread-safety"
- BUILD_TYPE=release
ENABLE_COVERAGE=OFF
CONFIGURE_FLAGS="--enable-mcsat"
- BUILD_TYPE=release
ENABLE_COVERAGE=OFF
CONFIGURE_FLAGS="--enable-thread-safety"
- BUILD_TYPE=gcov
ENABLE_COVERAGE=ON
CONFIGURE_FLAGS="--enable-mcsat"
# command to install dependencies
install:
- sudo apt-get update
- sudo apt-get install -y libgmp-dev gperf
- sudo apt-get install -y python-pip
- sudo apt-get install -y lcov
- gem install coveralls-lcov
#tests
script:
- ./.travis/build.sh
after_success:
- if [[ $ENABLE_COVERAGE == ON ]]; then
lcov --directory build --base-directory src --capture --output-file coverage.info;
coveralls-lcov coverage.info;
fi