-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
43 lines (38 loc) · 1.8 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
language: cpp
compiler:
- gcc
- clang
env:
global:
- CLANG_VERSION=3.5
- LIBSTDC_VERSION=4.8
- BOOST_VERSION='1_57_0'
- BOOST_SRC_URL='http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.57.0%2F&ts=1423615341&use_mirror=jaist'
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository --yes ppa:kalakris/cmake
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
# update gcc
- sudo apt-get install -qq g++-4.8
- export CXX="g++-4.8" CC="gcc-4.8"
# update clang
- sudo apt-get -qq --allow-unauthenticated install libstdc++-${LIBSTDC_VERSION}-dev
- sudo apt-get -qq --allow-unauthenticated install clang-${CLANG_VERSION}
- export CXX="clang++-3.5" CC="clang-3.5"
# update cmake
- sudo apt-get install cmake
install:
# Boost install
- wget -O boost_${BOOST_VERSION}.tar.gz "${BOOST_SRC_URL}"
- tar zxvf boost_${BOOST_VERSION}.tar.gz >> /dev/null
- mv boost_${BOOST_VERSION} $HOME
- export BOOST_ROOT="$HOME/boost_${BOOST_VERSION}"
- cd $BOOST_ROOT
- ./bootstrap.sh
script:
- cd $HOME/build/godai0519/BayesianNetwork
- mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4 && make test -j4 && cd .. && rm -r ./build
- mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j4 && make test -j4 && cd .. && rm -r ./build