forked from robotology/icub-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (43 loc) · 1.82 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
matrix:
allow_failures:
- os: osx
before_script:
#ubuntu dependencies
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo sh -c 'echo "deb http://www.icub.org/ubuntu precise contrib/science" > /etc/apt/sources.list.d/icub.list'; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:kubuntu-ppa/backports; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository -y ppa:robotology/ppa; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install cmake; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --force-yes install icub-common; fi
#OS X dependencies
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install `brew deps --1 yarp | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g'`; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install cmake goocanvas sdl sdl_gfx sdl_image gcc; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install ode --enable-double-precision; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew tap homebrew/science; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install opencv3; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install --with-qt3support qt; fi
#use the same set of cmake options used in the dashboard build
- source ./admin/scripts/generate-cmake-options.sh
#install yarp from master
- git clone https://github.com/robotology/yarp
- cd yarp
- mkdir build
- cd build
- cmake ../ -DCREATE_GUIS:BOOL=ON -DCREATE_LIB_MATH:BOOL=ON -DCREATE_OPTIONAL_CARRIERS:BOOL=ON -DENABLE_yarpcar_bayer_carrier:BOOL=ON
- make
- sudo make install
- cd ../..
- mkdir build
- cd build
- cmake ../ ${CMAKE_OPTIONS}
script:
- cmake --build .
- sudo make install
- sudo make uninstall