Commit 7c680117 authored by Tomasz Kucner's avatar Tomasz Kucner
Browse files

a bit more verbose compilation script

parent acfd8528
......@@ -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
......
#!/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
}
......@@ -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 ..
......
......@@ -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
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