From a095760d76a7a4f234630b43b90871d0cc8c37ee Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Gestoso <alopez@iri.upc.edu> Date: Tue, 20 Sep 2022 11:39:21 +0200 Subject: [PATCH] Updated to latest version of packaging generation --- .gitlab-ci.yml | 40 +++++++++------------------------------- CMakeLists.txt | 1 + 2 files changed, 10 insertions(+), 31 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a3dbeb5..f1ca3cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,34 +1,12 @@ -image: docker.io/labrobotica/labrobotica:latest + image: docker.io/labrobotica/labrobotica:18.04 -stages: - - build - - test - - deploy + variables: + GIT_SUBMODULE_STRATEGY: recursive + FROM_RDEPENDS_CI: "false" + TAG_VERSION: $CI_COMMIT_TAG + PACKAGE_NAME: "comm" + + include: + remote: 'https://gitlab.iri.upc.edu/labrobotica/packaging_ci/-/raw/master/packaging-ci.yml' -build-package: - stage: build - script: - - apt update || apt -y install ca-certificates && apt update -# Uncomment to install dependencies -# - apt -y iri-<package_name>-dev - - apt -y install iri-iriutils-dev - - mkdir -pv build - - cd build - - cmake -D CMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG .. - - make package -j $(nproc) - artifacts: - paths: - - build/*.deb - expire_in: 2 weeks - only: - - tags - -update_repo: - stage: deploy - 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 $(lsb_release -cs)" - only: - - tags diff --git a/CMakeLists.txt b/CMakeLists.txt index fb84fee..90f17f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,7 @@ IF (UNIX) SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) SET(CPACK_GENERATOR "DEB") SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "labrobotica - labrobotica@iri.upc.edu") + SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://gitlab.iri.upc.edu/labrobotica/drivers/comm") # Uncomment to add the necessary mantainer scripts SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/scripts/debian/postinst;${CMAKE_SOURCE_DIR}/scripts/debian/prerm") -- GitLab