-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 905 Bytes
/
.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
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
- clang
env:
- CMAKE_BUILD_TYPE=Release
before_install:
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository ppa:kubuntu-ppa/backports -y
- sudo apt-get update -qq
install:
- sudo apt-get install -qq libboost-python1.54-dev libboost1.54-dev libboost-test1.54-dev liblpsolve55-dev
- sudo apt-get install -qq libeigen3-dev
- sudo apt-get install -qq g++-4.9
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [ "$CC" = "clang" ]; then sudo apt-get install -qq clang-3.4; fi
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE
- make -j 2
- ctest -V
branches:
only:
- master
notifications:
email: false