forked from manzali/lseb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
46 lines (39 loc) · 1.12 KB
/
Copy path.travis.yml
File metadata and controls
46 lines (39 loc) · 1.12 KB
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
language: cpp
compiler:
- gcc
- clang
branches:
except:
- all_in_one
# Problem with clang
# http://stackoverflow.com/questions/15747223/why-does-this-basic-thread-program-fail-with-clang-but-pass-in-g
before_install:
# g++4.9
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
# clang3.4
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
# boost 1.58
- wget http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2/download
- tar xfj download
- rm download
install:
- sudo apt-get update -qq
# g++4.9
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.9; fi
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
# clang3.4
- if [ "$CXX" == "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
# boost 1.58
- cd boost_1_58_0
- ./bootstrap.sh --with-libraries=system,program_options
- ./b2
- sudo ./b2 install &>/dev/null
- cd ..
- rm -rf boost_1_58_0
before_script:
- mkdir build
- cd build
- cmake -DTRANSPORT="TCP" ..
script:
- make -j 4
- make check