-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
31 lines (28 loc) · 1.09 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
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
- clang
os:
- linux
- osx
install:
- CI_DIR=$PWD
- if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then sudo sh -c 'echo "deb http://www.icub.org/ubuntu trusty contrib/science" > /etc/apt/sources.list.d/icub.list' ; fi
- if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then sudo apt-get update ; fi
- if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then sudo apt-get install -qq -y libeigen3-dev libgoogle-glog-dev doxygen ; fi
- if [ "$TRAVIS_OS_NAME" = osx -o -z "$TRAVIS_OS_NAME" ]; then brew update ; fi
- if [ "$TRAVIS_OS_NAME" = osx -o -z "$TRAVIS_OS_NAME" ]; then brew install eigen tinyxml glog doxygen ; fi
- git clone https://github.com/ocra-recipes/eigen_lgsm.git
- cd eigen_lgsm ; mkdir build ; cd build ; cmake ..
- sudo make install
- cd $CI_DIR
- mkdir build ; cd build
- mkdir ~/install
- cmake .. -DCMAKE_INSTALL_PREFIX=~/install -DCOMPILE_TESTS=ON -DGENERATE_DOCUMENTATION=ON
script:
- make -j2
- make docs
# - make install
#run tests