Commit cefbfa07 authored by daniel's avatar daniel
Browse files
parents a16b7bca f1b8c193
......@@ -8,15 +8,16 @@ 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 sudo > /dev/null
- apt-get install -qq -y apt-transport-https sed wget unzip #> /dev/null
- source .gitlab-ci/prepare.sh
- sudo ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO > /dev/null
- chmod +x setup.sh
- ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO #> /dev/null
- setup_apt ${UBUNTU_DISTRO}
# - sudo apt-get install -qq -y python-catkin-tools v4r > /dev/null
- sudo 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
# - 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_ndt_core_yaml
stage: build
script:
......@@ -43,16 +44,17 @@ 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 sudo > /dev/null
- apt-get install -qq -y apt-transport-https sed wget unzip #> /dev/null
- source .gitlab-ci/prepare.sh
- sudo ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO > /dev/null
- chmod +x setup.sh
- ./setup.sh $UBUNTU_DISTRO $CI_ROS_DISTRO #> /dev/null
- setup_apt ${UBUNTU_DISTRO}
# - sudo apt-get install -q -y python-bloom devscripts v4r > /dev/null
- sudo 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
# - 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_ndt_core_yaml
stage: build
script:
......
#!/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
add_ndt_core_yaml() {
echo "Here you can add dependencies";
# 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 "Here you can define repo with our package";
# 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
}
......@@ -4,28 +4,28 @@ 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
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
dpkg -i ros-*_amd64.deb #> /dev/null
move_debian_packages
}
release_ros_wrappers() {
for i in `ls -d */|grep -v 'rosdep\|images\|msgs\|v4r_ros_wrappers'`; do
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
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
create_debian_package "ndt_core"
dpkg -i ros-*ndt_core*_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 ..
......
......@@ -22,13 +22,13 @@ echo "Installing Dependencies for V4R (Ubuntu ${ubuntu_version_name} using ROS $
echo "If you want to change this you can pass in the codename of the Ubuntu release. Eg. $0 xenial kinetic for 16.04 with ROS kinetic"
if [ ! -f /etc/apt/sources.list.d/ros-latest.list ]; then
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu '${ubuntu_version_name}' main" > /etc/apt/sources.list.d/ros-latest.list'
sh -c 'echo "deb http://packages.ros.org/ros/ubuntu '${ubuntu_version_name}' main" > /etc/apt/sources.list.d/ros-latest.list'
fi
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
sudo apt-get update -qq > /dev/null
sudo apt-get install -qq -y python-rosdep build-essential cmake > /dev/null
sudo rosdep init > /dev/null
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
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment