-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (32 loc) · 891 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
language: python
python:
- "3.8"
sudo: required
matrix:
include:
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
before_install:
- eval "${MATRIX_EVAL}"
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-9 /usr/bin/g++
- g++ --version
install:
- sudo apt-get install -y gdb # install gdb
before_script:
- ulimit -c unlimited -S # enable core dumps
script:
- cmake -DWITH_TESTS=ON -DCMAKE_BUILD_TYPE=Release . && make
- ./bin/sweetPyTests
after_failure:
- COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) # find core file
- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" ./bin/sweetPyTests -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
notifications:
email: false