forked from private-octopus/picoquic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (74 loc) · 2.18 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
dist: xenial
language: minimal
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- cmake-data
- libssl-dev
- gdb
matrix:
include:
- name: Linux (gcc-8)
os: linux
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- CC=gcc-8
- CXX=g++-8
- EXTRA_LDFLAGS="-fuse-ld=gold"
- name: Linux (clang)
os: linux
dist: xenial
env:
- CC=clang
- CXX=clang++
- name: Linux (scan-build)
os: linux
dist: xenial
env:
- CC=/usr/local/clang/libexec/ccc-analyzer
- CXX=/usr/local/clang/libexec/c++-analyzer
- EXTRA="scan-build"
- name: Linux (cppcheck)
os: linux
dist: xenial
env:
- CHECK="cppcheck"
- name: macOS (xcode)
os: osx
env:
- CMAKE_OPTS=" -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/"
- name: macOS (xcode 10.1/clang-10)
os: osx
osx_image: xcode10.1
env:
- CMAKE_OPTS=" -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/"
before_install:
- cmake --version
before_script:
# First build external lib
- ./ci/build_picotls.sh
- if [ "$CHECK" == "cppcheck" ]; then ./ci/build_cppcheck.sh; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'; fi
script:
# Now build picotls examples and test
- echo $CC
- echo $CXX
- $CC --version
- ${EXTRA} cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ${CMAKE_OPTS} .
- if [ "$CHECK" == "cppcheck" ]; then cppcheck --project=compile_commands.json --quiet; fi
- ${EXTRA} make
- ulimit -c unlimited -S
- ./picoquic_ct -n && RESULT=$?
# Early out if the program exited successfully
- if [[ ${RESULT} == 0 ]]; then exit 0; fi;
- for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb $(pwd)/picoquic_ct core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done;