forked from robotology/icub-models-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (51 loc) · 1.87 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
sudo: required
dist: trusty
language: cpp
cache: ccache
before_script:
# Start in the parent directory of icub-model-generator
- cd ..
- sudo apt-get install --assume-yes --force-yes python-lxml python-yaml python-numpy python-setuptools
# probably python on the path return a python interpreter and the find_package(PythonInterp) in CMake another,
# let's install both debian packages and pip packages to be sure
- sudo pip install lxml numpy pyyaml
# install urdf_parser_py
- git clone https://github.com/ros/urdf_parser_py
- cd urdf_parser_py
- sudo python setup.py install
- cd ../
# install simmechanics-to-urdf
- git clone https://github.com/robotology/simmechanics-to-urdf
- cd simmechanics-to-urdf
- sudo python setup.py install
- cd ../
# use superbuild for getting icub-model-generator C++ dependencies
- git clone https://github.com/robotology/codyco-superbuild
- cd codyco-superbuild
# install dependencies using the codyco-superbuild script
- chmod +x ./.ci/travis-deps.sh
- sh .ci/travis-deps.sh
- mkdir build
- cd build
- export CMAKE_PREFIX_PATH=`pwd`/install
# using the YCM_EP_MAINTAINER_MODE variable to enable the subproject-dependees target
- cmake -DCODYCO_TRAVIS_CI:BOOL=ON -DYCM_EP_MAINTAINER_MODE:BOOL=ON -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
- cmake --build .
- pwd
- cd ../..
# Install sdformat
- sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu trusty main" > /etc/apt/sources.list.d/gazebo-latest.list'
- wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install --assume-yes --force-yes libsdformat4-dev
# Prepare icub-model-generator build
- cd icub-model-generator
- mkdir build
- cd build
- cmake ..
script:
- sudo cmake --build .
- ctest --output-on-failure
notifications:
email:
- pegua1@gmail.com