-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy path.travis.yml
37 lines (37 loc) · 1.43 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
sudo: required
os:
- linux
- osx
osx_image: xcode9.3
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# Update the default 'trusty' linker and gcc version for tests to link and pass.
- g++-5
- binutils-2.26
env:
global:
- LINUX_PICKLE_URL=https://www.dropbox.com/s/yclmzq1n63cminb/linux-pickle.tar.gz?dl=0
- OSX_PICKLE_URL=https://www.dropbox.com/s/m23s3l9g1s9yw87/osx-pickle.tar.gz?dl=0
before_script:
# Update the default 'trusty' linker and gcc version for tests to link and pass.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo update-alternatives --install /usr/bin/ld ld /usr/lib/binutils-2.26/bin/ld 90;
fi
# To help prevent timeouts, download a 'pickled' .tar.gz archive of the linux
# webrtc checkout. LINUX_PICKLE_URL was created with:
# `GZIP=-9 tar zcvf linux-pickle.tar.gz .`
- mkdir -p out
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry curl -L $LINUX_PICKLE_URL -o pickle.tar.gz; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry curl -L $OSX_PICKLE_URL -o pickle.tar.gz; fi
- tar xzf pickle.tar.gz -C out && rm pickle.tar.gz
script:
- ./build.sh -n Release -d
# Run again since build.sh installation of dependencies sets back defaults
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90 --slave /usr/bin/g++ g++ /usr/bin/g++-5;
fi
- test/run_tests.sh $(ls -d -1 out/webrtc*/) Release