forked from robotology/navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (59 loc) · 2.15 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
sudo: required
dist: focal
language: cpp
os:
- linux
#- osx
compiler:
- gcc
- clang
matrix:
#allow_failures:
#- os: osx
before_script:
#ubuntu dependencies
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 57A5ACB6110576A6; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo sh -c 'echo "deb http://www.icub.org/ubuntu focal contrib/science" > /etc/apt/sources.list.d/icub.list'; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --assume-yes --force-yes install cmake ycm-cmake-modules libeigen3-dev icub-common libv4lconvert0 libv4l-dev; fi
#OS X dependencies
#- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew tap robotology/cask; fi
#- 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 eigen 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
#install yarp from master
- git clone https://github.com/robotology/yarp
- cd yarp
- git checkout master
- mkdir build
- cd build
- cmake ../ -DCREATE_LIB_MATH:BOOL=ON
- make
- sudo make install
- cd ../..
- git clone https://github.com/robotology/icub-main
- cd icub-main
- git checkout devel
- mkdir build
- cd build
- cmake ../ -DICUBMAIN_COMPILE_CORE:BOOL=OFF -DICUBMAIN_COMPILE_TOOLS:BOOL=OFF -DICUBMAIN_COMPILE_SIMULATORS:BOOL=OFF -DICUBMAIN_COMPILE_MODULES:BOOL=OFF
- make
- sudo make install
- cd ../..
- git clone https://github.com/robotology/icub-contrib-common.git
- cd icub-contrib-common
- mkdir build
- cd build
- cmake ../
- sudo make install
- cd ../..
- mkdir build
- cd build
- cmake ../
script:
- cmake --build .
- sudo make install
- sudo make uninstall