-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (28 loc) · 1.1 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
language: c
install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq lcov curl valgrind
matrix:
include:
- compiler: gcc
env: QCC_BUILD=Debug QCC_VALGRIND=1 QCC_SAN_ADDRESS=0 QCC_SAN_MEMORY=0
- compiler: gcc
env: QCC_BUILD=Release QCC_VALGRIND=1 QCC_SAN_ADDRESS=0 QCC_SAN_MEMORY=0
- compiler: clang
env: QCC_BUILD=Debug QCC_VALGRIND=1 QCC_SAN_ADDRESS=0 QCC_SAN_MEMORY=0
- compiler: clang
env: QCC_BUILD=Release QCC_VALGRIND=1 QCC_SAN_ADDRESS=0 QCC_SAN_MEMORY=0
- compiler: clang
env: QCC_BUILD=Debug QCC_VALGRIND=0 QCC_SAN_ADDRESS=1 QCC_SAN_MEMORY=0
- compiler: clang
env: QCC_BUILD=Release QCC_VALGRIND=0 QCC_SAN_ADDRESS=1 QCC_SAN_MEMORY=0
- compiler: clang
env: QCC_BUILD=Debug QCC_VALGRIND=0 QCC_SAN_ADDRESS=0 QCC_SAN_MEMORY=1
- compiler: clang
env: QCC_BUILD=Release QCC_VALGRIND=0 QCC_SAN_ADDRESS=0 QCC_SAN_MEMORY=1
script:
- export CTEST_OUTPUT_ON_FAILURE=1
- mkdir build && cd build
- cmake -DQCC_VALGRIND=$QCC_VALGRIND -DQCC_SAN_ADDRESS=$QCC_SAN_ADDRESS -DQCC_SAN_MEMORY=$QCC_SAN_MEMORY -DCMAKE_BUILD_TYPE=$QCC_BUILD ..
- make
- make test