forked from orocos/orocos_kinematics_dynamics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (85 loc) · 2.45 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
language: cpp
os: linux
dist: xenial
env:
global:
- CXXFLAGS="-Wall -Wextra -Wno-unused-parameter"
jobs:
include:
- &cmake
stage: CMake
name: GCC Debug
env: OROCOS_KDL_BUILD_TYPE=Debug
compiler: gcc
- <<: *cmake
name: GCC Release
env: OROCOS_KDL_BUILD_TYPE=Release
compiler: gcc
- <<: *cmake
name: CLang Debug
env: OROCOS_KDL_BUILD_TYPE=Debug
compiler: clang
- <<: *cmake
name: CLang Release
env: OROCOS_KDL_BUILD_TYPE=Release
compiler: clang
- &industrial-ci
stage: Industrial CI
name: Industrial CI Kinetic
env: ROS_DISTRO="kinetic" ROS_REPO=ros ABICHECK_URL='github:orocos/orocos_kinematics_dynamics#release-1.3'
compiler: gcc
services: docker
install: git clone https://github.com/ros-industrial/industrial_ci.git -b master .ci_config
script: source .ci_config/travis.sh
if: branch = release-1.3
- <<: *industrial-ci
name: Industrial CI Melodic
env: ROS_DISTRO="melodic" ROS_REPO=ros ABICHECK_URL='github:orocos/orocos_kinematics_dynamics#release-1.4' ABICHECK_MERGE=auto
if: branch = release-1.4
install:
- sudo apt-get -qq update
- sudo apt-get install -y libeigen3-dev libcppunit-dev python-psutil python3-psutil python-future python3-future
# build orocos_kdl
- cd orocos_kdl
- mkdir build
- cd build
- cmake -DENABLE_TESTS:BOOL=ON -DCMAKE_BUILD_TYPE=${OROCOS_KDL_BUILD_TYPE} ./..
# compile and install orocos_kdl
- make
- sudo make install
- cd ../..
# build python bindings python 2
- cd python_orocos_kdl
- mkdir build2
- cd build2
- export ROS_PYTHON_VERSION=2
- cmake -DCMAKE_BUILD_TYPE=${OROCOS_KDL_BUILD_TYPE} ./..
# compile and install python bindings python 2
- make
- sudo make install
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
- sudo ldconfig
- cd ../..
# build python bindings python 3
- cd python_orocos_kdl
- mkdir build3
- cd build3
- export ROS_PYTHON_VERSION=3
- cmake -DCMAKE_BUILD_TYPE=${OROCOS_KDL_BUILD_TYPE} ./..
# compile and install python bindings python 3
- make
- sudo make install
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
- sudo ldconfig
- cd ../..
script:
# execute orocos_kdl tests
- cd orocos_kdl/build
- make check
- cd ../..
# execute python bindings tests
- cd python_orocos_kdl
# python 2
- python2 tests/PyKDLtest.py
# python 3
- python3 tests/PyKDLtest.py