forked from robotology/gazebo-yarp-plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
64 lines (59 loc) · 2.28 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
language: cpp
matrix:
include:
- compiler: gcc
env: GAZEBO_YARP_PLUGINS_BUILD_TYPE=Debug USE_GAZEBO_ONEDOTNINE=TRUE
- compiler: gcc
env: GAZEBO_YARP_PLUGINS_BUILD_TYPE=Release USE_GAZEBO_THREE=TRUE
- compiler: clang
env: GAZEBO_YARP_PLUGINS_BUILD_TYPE=Debug USE_GAZEBO_THREE=TRUE
- compiler: clang
env: GAZEBO_YARP_PLUGINS_BUILD_TYPE=Release USE_GAZEBO_ONEDOTNINE=TRUE
before_script:
- sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu precise main" > /etc/apt/sources.list.d/gazebo-latest.list'
- wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
- sudo add-apt-repository -y ppa:robotology/ppa
- sudo apt-get update
- sudo apt-get install cmake
- sudo apt-get --force-yes install libace-dev
- if [ $USE_GAZEBO_THREE ]; then sudo apt-get install -qq --force-yes libgazebo-dev libavcodec-dev libavformat-dev libswscale-dev; fi
- if [ $USE_GAZEBO_ONEDOTNINE ]; then sudo apt-get install -qq --force-yes gazebo libtinyxml-dev libboost-system-dev; fi
# move to /home/travis/build/robotology/ directory
- cd ..
# install yarp
- git clone https://github.com/robotology/yarp
- cd yarp
- mkdir build
- cd build
- cmake -DCREATE_SHARED_LIBRARY:BOOL=ON -DYARP_USE_OPENCV:BOOL=OFF -DCMAKE_BUILD_TYPE=${GAZEBO_YARP_PLUGINS_BUILD_TYPE} ..
- make
- sudo make install
- sudo ldconfig
- cd ../..
# install robot-testing framework
- git clone https://github.com/robotology/robot-testing
- cd robot-testing
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${GAZEBO_YARP_PLUGINS_BUILD_TYPE} ..
- make
- cd ../..
# install icub-gazebo (for testing)
- git clone https://github.com/robotology-playground/icub-gazebo
- export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:/home/travis/build/robotology/icub-gazebo
# compile gazebo-yarp-plugins
- cd gazebo-yarp-plugins
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${GAZEBO_YARP_PLUGINS_BUILD_TYPE} -DALLOW_IDL_GENERATION:BOOL=OFF ./..
- pwd
script:
- make
# set GAZEBO_PLUGIN_PATH for running the tests
- export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:/home/travis/build/robotology/gazebo-yarp-plugins/build
# test install/uninstall
- sudo make install
- sudo make uninstall
notifications:
email: