forked from rawrtc/rawrtc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
129 lines (121 loc) · 3.22 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Use container system
sudo: false
# Cache OpenSSL build
cache:
directories:
# TODO: Re-enable once we figured out why this happens:
# https://s3.amazonaws.com/archive.travis-ci.org/jobs/213620911/log.txt
# - $HOME/build/rawrtc/rawrtc/build/dependencies/openssl
# - $HOME/build/rawrtc/rawrtc/build/prefix/lib
# Build matrix
language: c
matrix:
include:
- os: linux
dist: precise
compiler: gcc
addons:
apt:
sources:
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
# TODO: Re-enable once precise upgraded to OpenSSL >= 1.0.2
# - os: linux
# dist: precise
# compiler: gcc
# env: ENFORCE_OPENSSL=1
- os: linux
dist: precise
compiler: clang
addons:
apt:
sources:
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
# TODO: Re-enable once precise upgraded to OpenSSL >= 1.0.2
# - os: linux
# dist: precise
# compiler: clang
# env: ENFORCE_OPENSSL=1
- os: linux
dist: trusty
compiler: gcc
# TODO: Re-enable once trusty upgraded to OpenSSL >= 1.0.2
# - os: linux
# dist: trusty
# compiler: gcc
# env: ENFORCE_OPENSSL=1
- os: linux
dist: trusty
compiler: clang
# TODO: Re-enable once trusty upgraded to OpenSSL >= 1.0.2
# - os: linux
# dist: trusty
# compiler: clang
# env: ENFORCE_OPENSSL=1
- os: osx
osx_image: xcode7.3
compiler: clang
- os: osx
osx_image: xcode7.3
compiler: clang
env: ENFORCE_OPENSSL=1
- os: osx
osx_image: xcode8.3
compiler: clang
- os: osx
osx_image: xcode8.3
compiler: clang
env: ENFORCE_OPENSSL=1
# Linux dependencies
addons:
apt:
packages:
- git
- pkg-config
- libssl-dev
# OSX dependencies
before_install:
- >
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update || travis_terminate 1;
cmake --version || brew install cmake || travis_terminate 1;
brew install --force openssl || travis_terminate 1;
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:${PKG_CONFIG_PATH}
fi
# Make library dependencies
install:
- ./make-dependencies.sh
# Set environment vars & enable core dumps
before_script:
- export BUILD_PATH=$HOME/build/rawrtc/rawrtc/build
- export LD_LIBRARY_PATH=${BUILD_PATH}/prefix/lib:${LD_LIBRARY_PATH}
- export PATH=${BUILD_PATH}/prefix/bin:${PATH}
- ulimit -c unlimited -S
# Install library and run tests
script:
- cd build
- >
cmake
-DCMAKE_INSTALL_PREFIX=${BUILD_PATH}/prefix
-DCMAKE_C_FLAGS="-Werror -Wall -Wno-unused-function"
.. && make install
- ice-gatherer
# - make test
# Find core dump and print traceback on failure
after_failure:
- >
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
pip install six # OSX with xcode7.3 needs six
for f in $(find /cores -maxdepth 1 -name 'core.*' -print); do
lldb --core $f --batch --one-line "bt"
done;
else
for f in $(find ./ -maxdepth 1 -name 'core*' -print); do
gdb ${PWD}/ice-gatherer $f -ex "thread apply all bt" -ex "set pagination 0" --batch;
done;
fi;