-
Notifications
You must be signed in to change notification settings - Fork 95
/
.travis.yml
53 lines (46 loc) · 1.31 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
language: cpp
compiler:
- g++
- clang
os: linux
dist: bionic
addons:
apt:
update: true
sources:
- sourceline: 'ppa:mhier/libboost-latest'
packages:
- libboost1.70-dev
- valgrind
- gdb
env:
- CXXSTANDARD=14
- CXXSTANDARD=17
after_failure:
- COREFILE=$(find $TRAVIS_BUILD_DIR/cores -maxdepth 1 -name "core.*" -print | head -1)
- echo $COREFILE
- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" $EXEC -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
before_script:
- ulimit -c
- ulimit -a -S
- ulimit -a -H
- mkdir -p -m 0777 $TRAVIS_BUILD_DIR/cores
- sudo sysctl -w kernel.core_pattern=$TRAVIS_BUILD_DIR/cores/core.%e.%p
- cat /proc/sys/kernel/core_pattern
- git clone https://github.com/google/googletest.git
- cd googletest && cmake -DCMAKE_INSTALL_PREFIX=install .
- make install
- cd ..
script:
- ulimit -c unlimited -S #enable core dumps
- >
cmake
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE-BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=tests
-DCMAKE_CXX_FLAGS_INIT='-Wall -Wextra -m64 -ftemplate-backtrace-limit=0 -faligned-new -O3'
-DCMAKE_CXX_STANDARD=$CXXSTANDARD
-DGTEST_ROOT=googletest/install .
-DQUANTUM_ENABLE_TESTS=ON
-DQUANTUM_BOOST_USE_VALGRIND=ON
- make QuantumTests && ./tests/QuantumTests.Linux64