-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
58 lines (49 loc) · 1.24 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
sudo: required
dist: trusty
language:
- cpp
matrix:
include:
- env: BUILD=DEBUG
compiler: gcc
- env: BUILD=RELEASE
compiler: gcc
- env: BUILD=DEBUG
compiler: clang
- env: BUILD=RELEASE
compiler: clang
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install -qq g++
- if [ "$CXX" == "clang++" ]; then sudo apt-get install -qq clang libc++-dev libc++abi-dev; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++"; fi
- CMAKE_V=3.7.1
- CMAKE_SV=${CMAKE_V::-2}
- BOOST_V=1.62.0
- # Get and install CMake
- wget https://cmake.org/files/v${CMAKE_SV}/cmake-${CMAKE_V}.tar.gz
- tar xf cmake-${CMAKE_V}.tar.gz
- cd cmake-${CMAKE_V}
- ./configure
- make
- sudo make install
- cd ..
- # Get and install Boost
- PROJECT_DIR=`pwd`
- BOOST=$HOME/boost
- git clone --depth 1 -b boost-$BOOST_V https://github.com/boostorg/boost.git $BOOST
- cd $BOOST
- git submodule update --init --merge
- ./bootstrap.sh
- ./b2 headers
- cd $PROJECT_DIR
- export BOOST_ROOT=$BOOST
script:
- $CXX --version
- cmake --version
- mkdir -p build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD} -DBOOST_ROOT="$BOOST"
- make
- ./test/test_nemo
- ./bench/bench_nemo