Skip to content

Commit 2cda2b9

Browse files
[travis] Fix .travis.yml to install robotpkg needed packages.
1 parent cb78715 commit 2cda2b9

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*build*
1+
build*
22
vsbld*
33
include/sot-core/import-default-paths.h
44
unitTesting/test-paths.h

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ branches:
1818
matrix:
1919
allow_failures:
2020
- compiler: clang
21-
script: ./.travis/run build
21+
before_install: ./travis_custom/custom_before_install
22+
script:
23+
- sudo free -m -t
24+
- ./.travis/run ../travis_custom/custom_build
2225
after_success: ./.travis/run after_success
2326
after_failure: ./.travis/run after_failure
2427
before_install: ./.travis/run before_install

travis_custom/custom_before_install

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Set debug mode
5+
set -x
6+
set -v
7+
8+
# Add robotpkg
9+
sudo sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub trusty robotpkg\" >> /etc/apt/sources.list "
10+
curl http://robotpkg.openrobots.org/packages/debian/robotpkg.key | sudo apt-key add -
11+
12+
# show memory usage before install
13+
sudo free -m -t
14+
15+
# Setup environment variables.
16+
export APT_DEPENDENCIES="doxygen libboost-system-dev libboost-test-dev libboost-filesystem-dev libboost-program-options-dev libeigen3-dev libtinyxml-dev libconsole-bridge-dev robotpkg-pinocchio robotpkg-dynamic-graph-v3 robotpkg-py27-dynamic-graph-v3 robotpkg-sot-core-v3 "
17+
18+
# When this script is called the current directory is ./custom_travis
19+
. ./.travis/run ../.travis/before_install
20+
21+
# End debug mode
22+
set +v
23+
set +x

travis_custom/custom_build

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Set debug mode
5+
set -x
6+
set -v
7+
8+
# Setup environment variables.
9+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DCMAKE_CXX_FLAGS=-DBOOST_SYSTEM_NO_DEPRECATED "
10+
if [[ ";${DO_INSTALL_DOC_EXCEPT_ON_BRANCH};" == *";${CI_BRANCH};"* ]]; then
11+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"OFF\""
12+
else
13+
export CMAKE_ADDITIONAL_OPTIONS=" ${CMAKE_ADDITIONAL_OPTIONS} -DINSTALL_DOCUMENTATION=\"ON\""
14+
fi
15+
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/opt/openrobots/lib/pkgconfig"
16+
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/openrobots/lib"
17+
18+
# Setup environment variables.
19+
. ./.travis/run ../.travis/build
20+
21+
# End debug mode
22+
set +v
23+
set +x

0 commit comments

Comments
 (0)