Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Travis] Switch to Ubuntu 18.04 Bionic and add workaround for urdf_parser_py regression #116

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 14 additions & 48 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
sudo: required
dist: trusty
dist: bionic
language: cpp
cache: ccache
#cache: ccache


addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
# gcc
- gcc-5
- g++-5
# build tools
- cmake3
- build-essential
- cmake
# libraries
- libace-dev
- libboost-dev
- libeigen3-dev
- libgsl0-dev
- libtinyxml-dev
- liborocos-kdl-dev
- libconsole-bridge-dev
- liburdfdom-headers-dev
- liburdfdom-dev

env:
global:
Expand All @@ -31,14 +31,10 @@ env:
- BOT_USER_NAME="LOC2Bot"

before_script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository ppa:nschloe/eigen-backports -y; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libeigen3-dev; fi
# Force gcc-5
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CC" == "gcc" ]; then export CC=gcc-5; export CXX=g++-5; fi; fi
# Save the url of the repository and the user-name of the committ author
- export CURRENT_REPOSITORY_URL=`git remote get-url origin`
- COMMIT_AUTHOR="$(git --no-pager show -s --format='%an <%ae>' $TRAVIS_COMMIT)"
- COMMIT_AUTHOR="$(git --no-pager show -s --format='%an <%ae>')"
# 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
Expand All @@ -48,6 +44,8 @@ before_script:
# install urdf_parser_py and save the last commit SHA1 hash
- git clone $URDF_PARSER_PY_REPOSITORY_URL
- cd urdf_parser_py
# workaround for https://github.com/robotology/simmechanics-to-urdf/issues/36
- git checkout 31474b9baaf7c3845b40e5a9aa87d5900a2282c3
- export URDF_PARSER_PY_COMMIT=`git rev-parse HEAD`
- sudo python setup.py install
- cd ../
Expand Down Expand Up @@ -81,38 +79,6 @@ before_script:
- cmake ..
- sudo cmake --build . --target install
- cd ../..
## orocos_kdl
- git clone https://github.com/orocos/orocos_kinematics_dynamics
- cd orocos_kinematics_dynamics/orocos_kdl
- mkdir build
- cd build
- cmake ..
- sudo cmake --build . --target install
- cd ../../..
## console_bridge
- git clone https://github.com/ros/console_bridge
- cd console_bridge
- mkdir build
- cd build
- cmake ..
- sudo cmake --build . --target install
- cd ../..
# urdfdom_headers
- git clone https://github.com/ros/urdfdom_headers
- cd urdfdom_headers
- mkdir build
- cd build
- cmake ..
- sudo cmake --build . --target install
- cd ../..
# urdfdom
- git clone https://github.com/ros/urdfdom
- cd urdfdom
- mkdir build
- cd build
- cmake ..
- sudo cmake --build . --target install
- cd ../..
## idyntree
- git clone https://github.com/robotology/idyntree.git
- cd idyntree
Expand All @@ -132,10 +98,10 @@ before_script:
- sudo cmake --build . --target install
- cd ../..
# Install sdformat
- sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu trusty main" > /etc/apt/sources.list.d/gazebo-latest.list'
- sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu bionic 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
- sudo apt-get install --assume-yes --force-yes libsdformat6-dev
# Prepare icub-model-generator build
- cd icub-model-generator
- mkdir build
Expand Down
1 change: 1 addition & 0 deletions dh/generator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ find_package(YCM REQUIRED)
find_package(YARP 3.0 REQUIRED COMPONENTS OS dev sig math gsl)
find_package(ICUB REQUIRED)

find_package(console_bridge REQUIRED)
find_package(urdfdom REQUIRED)
find_package(orocos_kdl REQUIRED)
find_package(Eigen3 REQUIRED)
Expand Down