-
Notifications
You must be signed in to change notification settings - Fork 105
/
.travis.yml
37 lines (31 loc) · 1.14 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
language: cpp
compiler:
- g++
before_install:
- sudo apt-get -y install gdb
- pip install --user cpp-coveralls
install:
# get c++11 support
- export CXX="g++-5"
- ulimit -c
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
packages:
- g++-5
before_script:
- ulimit -c unlimited -S
script:
- RESULT=0
- make prepare PAPI_FLAG=-DNO_USE_PAPI
- make benchmark-all CXX=g++-5 PAPI_FLAG=-DNO_USE_PAPI PRELOAD_LIB=
- make benchmark-bwtree CXX=g++-5 PAPI_FLAG=-DNO_USE_PAPI PRELOAD_LIB=
- make clean
- make test CXX=g++-5 OPT_FLAG="-fprofile-arcs -ftest-coverage -O2 --coverage" PAPI_FLAG=-DNO_USE_PAPI PRELOAD_LIB= || RESULT=$?
- if [[ ${RESULT} == 0 ]]; then echo "\\o/ Test worked without problems"; else echo "Test returned an errorcode of $RESULT"; fi;
- for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/test core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done;
- if [[ ${RESULT} != 0 ]]; then exit $RESULT ; fi;
after_success:
- coveralls --gcov=gcov-5 -t=NZ5M6jFefl1w4w7aCVCLDuK4GfOWMFYiW