-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (29 loc) · 1.16 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
language: cpp
compiler:
- gcc
- clang
before_install:
# upgrade gcc:
- sudo add-apt-repository --yes ppa:george-edison55/gcc4.7-precise
# upgrade cmake:
- sudo add-apt-repository --yes ppa:kalakris/cmake # workaround to use a newer cmake (2.8.11.2-1ubuntu2~precise1)
- sudo apt-get update -qq
# start installing stuff:
- sudo apt-get install -qqy cmake gcc-4.7
# install dependencies:
- sudo apt-get install -qqy libgmp3-dev libgmpxx4ldbl # GNU MP and its C++ bindings; needed by RevKit
- sudo apt-get install -qqy gcc clang python # make sure that the compilers are updated
# build boost 1.57.0:
- wget --trust-server-name http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2/download # get boost
- tar --bzip2 -xf boost_1_57_0.tar.bz2 # extract boost
- cd boost_1_57_0
- ./bootstrap.sh --with-python=PYTHON # 'PYTHON' is just a variable ((pre)defined in bootstrap.sh) with value 'python'
- ./b2 -d0 stage threading=multi link=shared
- sudo ./b2 install threading=multi link=shared
- cd ..
before_script:
- mkdir build
- cd build
- cmake ..
script:
- make