diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b4a83ae2681392a0a7bf95fa896bf0779384b609..bff7881c463c3ce5ca15d33ff07d88e676744f02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -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 diff --git a/scripts/debian/postinst b/scripts/debian/postinst index 193597eea3704becc4e75fbe5b6288783853baac..d1b8187d634feb77d63fb9de31870d3bc87cdbc1 100755 --- a/scripts/debian/postinst +++ b/scripts/debian/postinst @@ -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) diff --git a/scripts/debian/prerm b/scripts/debian/prerm index 0ad26db1be77a2bef43d6c0f40dab52d02e1dfe8..b826b88ed70a3b7333c3454ba39288f8a4c7a981 100644 --- a/scripts/debian/prerm +++ b/scripts/debian/prerm @@ -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)