-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
149 lines (127 loc) · 4.09 KB
/
.gitlab-ci.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# we use ROS indigo for now
# Ubuntu 14.04
ubuntu-trusty:
image: ubuntu:trusty
variables:
CI_ROS_DISTRO: indigo
UBUNTU_DISTRO: trusty
before_script:
- sudo apt-get update -qq > /dev/null
- sudo apt-get install -qq -y wget > /dev/null
- sudo ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO > /dev/null
stage: build
script:
- mkdir v4r-build
- cd v4r-build
- cmake ..
- make -j8
# Ubuntu 14.04 debian package generation
ubuntu-trusty-build-package:
image: ubuntu:trusty
variables:
CI_ROS_DISTRO: indigo
UBUNTU_DISTRO: trusty
before_script:
- sudo apt-get update -qq > /dev/null
- sudo apt-get install -qq -y wget sed > /dev/null
- sudo ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO > /dev/null
- sudo apt-get install -qq -y python-bloom devscripts > /dev/null
stage: build
script:
- bloom-generate debian --os-name ubuntu --os-version $UBUNTU_DISTRO --ros-distro $CI_ROS_DISTRO
- sed -i 's/dh $@/dh $@ --parallel/' debian/rules
- sed -i 's?v4r\//usr\/lib\/?v4r/usr/lib/:$(CURDIR)/debian/v4r/usr/share/V4R/3rdparty/lib/?' debian/rules
- debuild -rfakeroot -us -uc -b -j8
- mkdir build
- mv ../*.deb build
# This stage is only executed for new tags
only:
- tags
- release@root/v4r
# The files which are to be made available in GitLab
artifacts:
paths:
- build/*
# Ubuntu 16.04
ubuntu-xenial:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
before_script:
- apt-get update -qq > /dev/null
- apt-get install -qq -y wget sudo > /dev/null
- sudo ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO
stage: build
script:
- apt-get install -y libgoogle-glog-dev libatlas-base-dev libeigen3-dev libsuitesparse-dev> /dev/null
# finally v4r build starts
- mkdir v4r-build
- cd v4r-build
- cmake .. -DPCL_APPS_LIBRARY:=/usr/lib/x86_64-linux-gnu/libpcl_apps.so.1.7
# Ubuntu 16.04 debian package generation
ubuntu-xenial-build-package:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
before_script:
- apt-get update -qq
- apt-get install -qq -y wget sed sudo
- sudo ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO
- sudo apt-get install -qq -y python-bloom devscripts
# we need a specific version of libceres
- apt-get purge libceres-dev ceres-solver-doc libceres1 -y
- wget http://ceres-solver.org/ceres-solver-1.11.0.tar.gz
- tar xfz ceres-solver-1.11.0.tar.gz
- mkdir ceres-build
- cd ceres-build
- cmake ../ceres-solver-1.11.0 -DBUILD_SHARED_LIBS=ON
- make -j8
- make install
- cd ..
- rm -rf ceres-build
stage: build
script:
- bloom-generate debian --os-name ubuntu --os-version $UBUNTU_DISTRO --ros-distro $CI_ROS_DISTRO
- sed -i 's/dh $@/dh $@ --parallel/' debian/rules
- cat debian/rules
- debuild -rfakeroot -us -uc -b -j8
- mkdir build
- mv ../*.deb build
# This stage is only executed for new tags
only:
- tags
- release@root/v4r
# The files which are to be made available in GitLab
artifacts:
paths:
- build/*
- make -j8
# Ubuntu 16.04 debian package generation
ubuntu-xenial-build-package:
image: ubuntu:xenial
variables:
CI_ROS_DISTRO: kinetic
UBUNTU_DISTRO: xenial
before_script:
- apt-get update -qq > /dev/null
- apt-get install -qq -y wget sed sudo > /dev/null
- sudo ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO
- sudo apt-get install -qq -y python-bloom devscripts > /dev/null
stage: build
script:
- bloom-generate debian --os-name ubuntu --os-version $UBUNTU_DISTRO --ros-distro $CI_ROS_DISTRO
- sed -i 's/dh $@/dh $@ --parallel/' debian/rules
- sed -i 's?v4r\//usr\/lib\/?v4r/usr/lib/:$(CURDIR)/debian/v4r/usr/share/V4R/3rdparty/lib/?' debian/rules
- cat debian/rules
- debuild -rfakeroot -us -uc -b -j8
- mkdir build
- mv ../*.deb build
# This stage is only executed for new tags
only:
- tags
# The files which are to be made available in GitLab
artifacts:
paths:
- build/*