This repository has been archived by the owner on Jan 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
54 lines (52 loc) · 1.44 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
sudo: required
dist: xenial
# Enable C++ support
language: cpp
## Install dependencies
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
matrix:
include:
# Compiler selection
- compiler: gcc
# Build steps
script:
- export CXX=g++-5
- export CC=gcc-5
- cd ../
- root=`pwd`
# Install boost
- boost_major=1
- boost_minor=60
- boost_patch=0
- boost=boost_${boost_major}_${boost_minor}_${boost_patch}
- wget http://downloads.sourceforge.net/project/boost/boost/${boost_major}.${boost_minor}.${boost_patch}/${boost}.tar.bz2
- tar xf ${boost}.tar.bz2
- cd ${boost}
- ./bootstrap.sh
- ./b2 install -d+0 --link=shared --prefix=${root}/boost --with-system --with-program_options --with-test
- cd ../
# Install stunserver
- wget http://www.stunprotocol.org/stunserver-1.2.10.tgz
- tar xf stunserver-1.2.10.tgz
- cd stunserver
- make BOOST_INCLUDE=-I${root}/boost/include
- cd ..
# Build Club
- cd libclub
- mkdir build
- cd build
- cmake .. -DBOOST_INCLUDEDIR=${root}/boost/include -DBOOST_LIBRARYDIR=${root}/boost/lib
- make
# Run Club tests
- cd ..
- ../stunserver/server/stunserver --primaryport=3478 &
- ../stunserver/server/stunserver --primaryport=3480 &
- ../stunserver/server/stunserver --primaryport=3482 &
- ../stunserver/server/stunserver --primaryport=3484 &
- ../stunserver/server/stunserver --primaryport=3486 &
- ./build/club-tests --log_level=test_suite