Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
software
ndt_core_public
Commits
7c680117
Commit
7c680117
authored
Aug 21, 2018
by
Tomasz Kucner
Browse files
a bit more verbose compilation script
parent
acfd8528
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
28 deletions
+28
-28
.gitlab-ci.yml
.gitlab-ci.yml
+13
-13
.gitlab-ci/prepare.sh
.gitlab-ci/prepare.sh
+5
-5
.gitlab-ci/relese.sh
.gitlab-ci/relese.sh
+5
-5
setup.sh
setup.sh
+5
-5
No files found.
.gitlab-ci.yml
View file @
7c680117
...
...
@@ -8,15 +8,15 @@ ubuntu-xenial:
before_script
:
-
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
-
apt-get update
-
apt-get install -qq -y apt-transport-https sed wget unzip > /dev/null
-
apt-get install -qq -y apt-transport-https sed wget unzip
#
> /dev/null
-
source .gitlab-ci/prepare.sh
-
chmod +x setup.sh
-
./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO > /dev/null
-
./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO
#
> /dev/null
-
setup_apt ${UBUNTU_DISTRO}
# - apt-get install -qq -y python-catkin-tools
v4r
> /dev/null
-
apt-get install -qq -y python-catkin-tools > /dev/null
-
rosdep update 2> /dev/null
-
rosdep install --from-paths . -i -y -r --rosdistro $CI_ROS_DISTRO 2> /dev/null
# - apt-get install -qq -y python-catkin-tools
#
> /dev/null
-
apt-get install -qq -y python-catkin-tools
#
> /dev/null
-
rosdep update
#
2> /dev/null
-
rosdep install --from-paths . -i -y -r --rosdistro $CI_ROS_DISTRO
#
2> /dev/null
# - add_v4r_yaml
stage
:
build
...
...
@@ -44,16 +44,16 @@ ubuntu-xenial-build-package:
-
echo $CI_ROS_DISTRO
-
echo ${CI_ROS_DISTRO}
-
apt-get update
-
apt-get install -qq -y apt-transport-https sed wget unzip > /dev/null
-
apt-get install -qq -y apt-transport-https sed wget unzip
#
> /dev/null
-
source .gitlab-ci/prepare.sh
-
chmod +x setup.sh
-
./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO > /dev/null
-
./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO
#
> /dev/null
-
setup_apt ${UBUNTU_DISTRO}
# - apt-get install -q -y python-bloom devscripts
v4r
> /dev/null
-
apt-get install -q -y python-bloom devscripts > /dev/null
-
apt-get install -f -y > /dev/null
-
rosdep update 2> /dev/null
-
rosdep install --from-paths . -i -y -r --rosdistro $CI_ROS_DISTRO 2> /dev/null
# - apt-get install -q -y python-bloom devscripts
#
> /dev/null
-
apt-get install -q -y python-bloom devscripts
#
> /dev/null
-
apt-get install -f -y
#
> /dev/null
-
rosdep update
#
2> /dev/null
-
rosdep install --from-paths . -i -y -r --rosdistro $CI_ROS_DISTRO
#
2> /dev/null
#- add_v4r_yaml
stage
:
build
...
...
.gitlab-ci/prepare.sh
View file @
7c680117
#!/bin/bash
add_v4r_yaml
()
{
echo
"yaml file:///
`
pwd
`
/rosdep/
${
CI_ROS_DISTRO
}
.yaml"
|
sudo
tee
/etc/ros/rosdep/sources.list.d/10-v4r.list
rosdep update
>
/dev/null
echo
"yaml file:///
`
pwd
`
/rosdep/
${
CI_ROS_DISTRO
}
.yaml"
|
tee
/etc/ros/rosdep/sources.list.d/10-v4r.list
rosdep update
#
> /dev/null
}
setup_apt
()
{
echo
"deb [arch=amd64] https://rwiki.acin.tuwien.ac.at/apt/v4r-release
${
1
}
main"
|
sudo
tee
/etc/apt/sources.list.d/v4r.list
wget
-qO
- https://rwiki.acin.tuwien.ac.at/apt/v4r-release/Public.key |
sudo
apt-key add -
sudo
apt-get update
-qq
>
/dev/null
echo
"deb [arch=amd64] https://rwiki.acin.tuwien.ac.at/apt/v4r-release
${
1
}
main"
|
tee
/etc/apt/sources.list.d/v4r.list
wget
-qO
- https://rwiki.acin.tuwien.ac.at/apt/v4r-release/Public.key | apt-key add -
sudo
apt-get update
-qq
#
> /dev/null
}
.gitlab-ci/relese.sh
View file @
7c680117
...
...
@@ -4,14 +4,14 @@ release_messages() {
for
i
in
*
msgs
;
do
create_debian_package
"
$i
"
done
dpkg
-i
ros-
*
msgs
*
_amd64.deb
>
/dev/null
dpkg
-i
ros-
*
msgs
*
_amd64.deb
#
> /dev/null
}
release_dependency_packages
()
{
for
i
in
v4r_object_tracker v4r_object_classification v4r_segmentation v4r_object_recognition
;
do
create_debian_package
"
$i
"
done
dpkg
-i
ros-
*
_amd64.deb
>
/dev/null
dpkg
-i
ros-
*
_amd64.deb
#
> /dev/null
move_debian_packages
}
...
...
@@ -19,13 +19,13 @@ release_ros_wrappers() {
for
i
in
`
ls
-d
*
/|grep
-v
'rosdep\|images\|msgs\|v4r_ros_wrappers'
`
;
do
create_debian_package
"
$i
"
done
dpkg
-i
ros-
*
_amd64.deb
>
/dev/null
dpkg
-i
ros-
*
_amd64.deb
#
> /dev/null
move_debian_packages
}
release_meta_package
()
{
create_debian_package
"v4r_ros_wrappers"
dpkg
-i
ros-
*
v4r
*
wrappers
*
_amd64.deb
>
/dev/null
dpkg
-i
ros-
*
v4r
*
wrappers
*
_amd64.deb
#
> /dev/null
move_debian_packages
}
...
...
@@ -37,7 +37,7 @@ create_debian_package() {
echo
"generating debian package for
$1
"
bloom-generate rosdebian
--os-name
ubuntu
--os-version
$UBUNTU_DISTRO
--ros-distro
$CI_ROS_DISTRO
&&
\
sed
-i
's/dh $@/dh $@ --parallel/'
debian/rules
debuild
-rfakeroot
-us
-uc
-b
-j8
>
/dev/null
debuild
-rfakeroot
-us
-uc
-b
-j8
#
> /dev/null
touch
.done
fi
cd
..
...
...
setup.sh
View file @
7c680117
...
...
@@ -26,9 +26,9 @@ if [ ! -f /etc/apt/sources.list.d/ros-latest.list ]; then
fi
wget http://packages.ros.org/ros.key
-O
- | apt-key add -
apt-get update
-qq
>
/dev/null
apt-get
install
-qq
-y
python-rosdep build-essential cmake
>
/dev/null
rosdep init
>
/dev/null
apt-get update
-qq
#
> /dev/null
apt-get
install
-qq
-y
python-rosdep build-essential cmake
#
> /dev/null
rosdep init
#
> /dev/null
rosdep update 2> /dev/null
rosdep
install
-q
--from-paths
.
-i
-y
-r
--rosdistro
${
ros_version
}
2> /dev/null
rosdep update
#
2> /dev/null
rosdep
install
-q
--from-paths
.
-i
-y
-r
--rosdistro
${
ros_version
}
#
2> /dev/null
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment