forked from CMA-ES/libcmaes
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
33 lines (27 loc) · 992 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
31
32
33
language: cpp
branches:
only:
- dev
- master
compiler:
- gcc
- clang
before_install:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt-get update -qq && sudo apt-get install -qq autoconf automake libtool g++-4.8 libboost-python-dev python-numpy; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install boost-python gflags; export CXX=clang++; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- wget http://bitbucket.org/eigen/eigen/get/3.2.4.tar.bz2
- tar xvjf 3.2.4.tar.bz2
- cd eigen-eigen-10219c95fe65
- mkdir build; cd build
- cmake .. && sudo make install
- cd ../../
- rm -rf 3.2.4.tar.gz2 eigen-eigen-10219c95fe65
before_script:
- ./autogen.sh
- if [ $TRAVIS_OS_NAME == linux ]; then ./configure --enable-python; fi
- if [ $TRAVIS_OS_NAME == osx ]; then ./configure --enable-python LDFLAGS="-L/usr/local/lib/"; fi
script: make
os:
- linux
- osx