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
c178d31b
Commit
c178d31b
authored
Aug 22, 2018
by
Tomasz Kucner
Browse files
improved scripts
parent
17192ce4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
8 deletions
+70
-8
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
.gitlab-ci/prepare.sh
.gitlab-ci/prepare.sh
+6
-6
.gitlab-ci/release.sh
.gitlab-ci/release.sh
+62
-0
No files found.
.gitlab-ci.yml
View file @
c178d31b
...
...
@@ -17,7 +17,7 @@ ubuntu-xenial:
-
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
# - add_
ndt_core
_yaml
stage
:
build
script
:
...
...
@@ -54,7 +54,7 @@ ubuntu-xenial-build-package:
-
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
#- add_
ndt_core
_yaml
stage
:
build
script
:
...
...
.gitlab-ci/prepare.sh
View file @
c178d31b
#!/bin/bash
add_
v4r
_yaml
()
{
echo
"yaml file:///
`
pwd
`
/rosdep/
${
CI_ROS_DISTRO
}
.yaml"
|
tee
/etc/ros/rosdep/sources.list.d/10-v4r.list
rosdep update
#> /dev/null
add_
ndt_core
_yaml
()
{
#
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"
|
tee
/etc/apt/sources.list.d/v4r.list
wget
-qO
- https://rwiki.acin.tuwien.ac.at/apt/v4r-release/Public.key | apt-key add -
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 -
#
apt-get update -qq #> /dev/null
}
.gitlab-ci/release.sh
0 → 100644
View file @
c178d31b
#!/bin/bash
release_messages
()
{
for
i
in
*
msgs
;
do
create_debian_package
"
$i
"
done
dpkg
-i
ros-
*
msgs
*
_amd64.deb
#> /dev/null
}
release_dependency_packages
()
{
for
i
in
ndt_generic ndt_map ndt_registration ndt_rviz ndt_visualisation
;
do
create_debian_package
"
$i
"
done
dpkg
-i
ros-
*
_amd64.deb
#> /dev/null
move_debian_packages
}
release_ros_wrappers
()
{
for
i
in
`
ls
-d
*
/|grep
-v
'rosdep\|images\|msgs\|ndt_core'
`
;
do
create_debian_package
"
$i
"
done
dpkg
-i
ros-
*
_amd64.deb
#> /dev/null
move_debian_packages
}
release_meta_package
()
{
create_debian_package
"ndt_core"
dpkg
-i
ros-
*
ndt_core
*
_amd64.deb
#> /dev/null
move_debian_packages
}
create_debian_package
()
{
cd
$1
if
[
-f
.done
]
;
then
echo
"Package
$1
was already build. Skipping..."
else
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
touch
.done
fi
cd
..
}
move_debian_packages
()
{
mv
*
deb .build/
}
release_package
()
{
release_messages
release_dependency_packages
release_ros_wrappers
release_meta_package
}
show_info
()
{
echo
$UBUNTU_DISTRO
echo
$CI_ROS_DISTRO
}
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