forked from mongodb/mongo-c-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (30 loc) · 782 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
language: c
compiler:
- gcc
- clang
os:
- linux
before_script:
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
services: mongodb
env:
- CFLAGS="$CFLAGS -Werror -Wno-cast-align"
addons:
apt:
packages:
- gdb
script:
- sudo sh -c 'echo "\n::1 localhost\n" >> /etc/hosts'
- ulimit -a
- ulimit -c unlimited || true
- cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_MAINTAINER_FLAGS=ON -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF .
- make -j 8
- make check
after_failure:
- find /cores . -name \*core\* -exec ./.travis.scripts/debug-core.sh {} \;
git:
depth: 20