This repository has been archived by the owner on Jul 31, 2019. It is now read-only.
forked from ADVRHumanoids/advr-superbuild
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
79 lines (71 loc) · 2.18 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
68
69
70
71
72
73
74
75
76
77
78
language: cpp
compiler: g++
dist: xenial
notifications:
email:
recipients:
- enrico.mingo@iit.it
on_success: never
on_failure: always
# Handle git submodules yourself
#git:
# submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
sudo: required
before_install:
#- go get ADVRHumanoids/xbotcoremodel.git
#- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
#- git submodule update --init --recursive
script:
#config git
- git config --global user.name "Enrico Mingo"
- git config --global user.email "enrico.mingo@iit.it"
#source env variables and install missing packages
- sudo apt-get install cmake
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
- sudo apt-get update
- sudo apt-get --allow-unauthenticated install ros-kinetic-desktop
- sudo rosdep init
- rosdep update
- source /opt/ros/kinetic/setup.bash
- sudo apt-get --allow-unauthenticated install ros-kinetic-rviz-visual-tools #THIS SHOULD BE INSTALLED BY get_dependency.sh
- pwd
- ls
- ./scripts/get_dependencies.sh
- chmod 777 ./OpenSoT-setup.bash
- source ./OpenSoT-setup.bash
- pip install catkin_pkg
- pip install empy
- sudo chmod 777 "$HOME/.gitconfig"
- git config --global user.name
- git config --global user.email
#Build
- mkdir -p build
- cd build
- cmake ..
- make
- cd external/RDC2018/
- make install
- cd ../trajectory_utils/
#Tests
- cmake ../../../external/trajectory_utils -DTRAJECTORY_UTILS_COMPILE_EXAMPLES:BOOL=TRUE -DTRAJECTORY_UTILS_COMPILE_TRJ_DESIG:BOOL=TRUE -DTRAJECTORY_UTILS_COMPILE_TESTS:BOOL=TRUE
- make -j8
- make install
#- make test ARGS="-V"
- make test
- cd ../XBotInterface
- cmake ../../../external/XBotInterface -DBUILD_TESTS:BOOL=TRUE
- make -j8
- make install
#- make test ARGS="-V"
- make test
- cd ../../../external/OpenSoT
- git fetch --all
- git checkout devel
- cd ../../build/external/OpenSoT
- cmake ../../../external/OpenSoT -DOPENSOT_COMPILE_TESTS:BOOL=TRUE
- make -j8
- make install
#- make test ARGS="-V"
- make test