Commit 0d51d948 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Adapted to Ubuntu 18.04 package generation

parent b1fdc5de
Pipeline #6037 passed with stages
in 32 seconds
image: docker.io/labrobotica/labrobotica
image: docker.io/labrobotica/labrobotica:latest
stages:
- build
......@@ -8,10 +8,9 @@ stages:
build-package:
stage: build
script:
- apt update || apt -y install ca-certificates && apt update
# Uncomment to install dependencies
# - apt update
# - apt -y iri-<package_name>-dev
- apt update
# - apt -y install iri-<package_name>-dev
- apt -y install iri-iriutils-dev
- mkdir -pv build
- cd build
......@@ -29,7 +28,7 @@ update_repo:
script:
- cd build
- "scp -i /root/.ssh/iriLabKeyNopwd -r *comm*.deb irilabo@labrepo.iri.upc.edu:packages/"
- "ssh irilabo@labrepo.iri.upc.edu -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh comm"
- "ssh irilabo@labrepo.iri.upc.edu -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh comm $(lsb_release -cs)"
only:
- tags
......@@ -34,6 +34,9 @@ case "$1" in
sudo echo " export PATH=\$PATH:\${iri_script_path}" >> $FILE
sudo echo "fi" >> $FILE
echo " Done. It's necessary a log out for changes to take effect."
echo " Trying to add library to ldconfig..."
/usr/share/iri/add_lib_to_ld_config.sh -l comm -p && echo " Done." || echo " /usr/share/iri/add_lib_to_ld_config.sh doesn't exists. Download it from iriutils and execute it."
;;
abort-upgrade)
......
......@@ -12,6 +12,9 @@ case "$1" in
sudo service udev restart
echo " Done. Need to unplug-plug devices for changes to take effect"
echo " Trying to remove library from ldconfig..."
/usr/share/iri/remove_lib_from_ld_config.sh -l comm -p && echo " Done." || echo " /usr/share/iri/remove_lib_from_ld_config.sh doesn't exists. Download it from iriutils and execute it."
;;
upgrade)
......
Supports Markdown
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