forked from robotology/icub-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (57 loc) · 1.84 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
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
- clang
env:
- TRAVIS_BUILD_TYPE=Debug
- TRAVIS_BUILD_TYPE=Release
before_script:
# install a recent cmake and lua 5.1
#ubuntu dependencies
- if [ "$TRAVIS_OS_NAME" = "linux" ]; 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" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install cmake3 liblua5.1-dev; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get --assume-yes --force-yes install icub-common libeigen3-dev; fi
- cd ..
# install robot testing framework
- git clone --depth=1 --branch devel https://github.com/robotology/robot-testing-framework
- cd robot-testing-framework
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DENABLE_LUA_PLUGIN:BOOL=ON -DENABLE_WEB_LISTENER:BOOL=ON ..
- make
- sudo make install
- cd ../..
# install yarp
- git clone --depth=1 --branch devel https://github.com/robotology/yarp
- cd yarp
- mkdir build
- cd build
- cmake -DCREATE_LIB_MATH:BOOL=ON -DCREATE_SHARED_LIBRARY:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DYARP_COMPILE_RobotTestingFramework_ADDONS:BOOL=ON ..
- make
- sudo make install
- sudo ldconfig
- cd ../..
# install icub-main
- git clone --depth=1 --branch devel https://github.com/robotology/icub-main
- cd icub-main
- mkdir build
- cd build
- cmake -DCREATE_SHARED_LIBRARY:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ..
- make
- sudo make install
- sudo ldconfig
- cd ../..
# configure icub-tests
- cd icub-tests
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ..
script:
- make
# test install/uninstall
notifications:
email:
- pegua1@gmail.com