-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
108 lines (88 loc) · 2.86 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
os: linux
language: cpp
compiler: g++
dist: xenial
notifications:
email:
recipients:
on_success: never
on_failure: never
before_install:
script:
# install ros
- 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://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt-get update
- sudo apt-get install ros-kinetic-desktop ros-kinetic-srdfdom
# moveit
- sudo apt-get install ros-kinetic-moveit
# basic tools
- sudo apt-get install git cmake doxygen
#config git
- git config --global user.name "liesrock"
- git config --global user.email "[email protected]"
#source env variables and install missing packages
- pwd
- source /opt/ros/kinetic/setup.bash
# rosee_msgs from sources
# NOTE: We can now clone, the old wget was because it was a private repo?
#- wget https://github.com/ADVRHumanoids/rosee_msg/archive/v0.1.3.tar.gz
#- tar -xvf v0.1.3.tar.gz && cd rosee_msg-0.1.3/
- git clone -b master https://github.com/ADVRHumanoids/rosee_msg.git
- cd rosee_msg && mkdir build && cd build
# workaround for installing ROS catkin package without catkin_workspace
- cmake .. -DCMAKE_INSTALL_PREFIX:=/opt/ros/kinetic
- sudo chmod -R 777 /opt/ros/kinetic
- make install
#install muparser
- git clone https://github.com/beltoforion/muparser.git
- cd muparser
- cmake .
- make
- sudo make install
- sudo ldconfig
- cd ..
# going back to working directory
- cd ../../
# download and install xbot2
# xbot dependencies
- sudo apt-get install libmatio-dev
- wget https://github.com/ADVRHumanoids/XBotControl/releases/download/2.0-devel-core-updated/xenial-latest.tar.gz
- tar -xvf xenial-latest.tar.gz && cd xenial-16.04-2020_12_13_21_10_00
- sudo ./install.sh
- chmod +x ./setup.sh
- ./setup.sh
- cd ../
- source /opt/xbot/xbot2_setup.sh
#Build ROSEE
- mkdir -p build
- cd build
- cmake -DBUILD_documentation=ON -DBUILD_WITH_XBOT2=ON ..
- make
- make dox
#tests
- make tests
- source devel/setup.bash
- ctest --verbose
# OLD WAY to test with roscore needed in this file. test with test_ee hand
#- rosparam set -t $(rospack find end_effector)/configs/urdf/test_ee.urdf robot_description
#- rosparam set -t $(rospack find end_effector)/configs/srdf/test_ee.srdf robot_description_semantic
#- make test ARGS="-V" -i
# to test with schunk hand we would need to install its package...
# add other hand test...
before_deploy:
- yes | gem update --system --force
- gem install bundler
- gem install faraday-net_http -v '3.3.0' # Fix faraday version
- gem install uri
- gem install logger
deploy:
provider: pages
skip_cleanup: true
token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
local_dir: doc/html
on:
branch: master