Skip to content
Snippets Groups Projects
Commit fba175a0 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Updated to last package generation version

parent 4b38ed7d
No related branches found
No related tags found
No related merge requests found
Pipeline #16983 passed
image: docker.io/labrobotica/labrobotica:latest image: docker.io/labrobotica/labrobotica:20.04
stages:
- build
- test
- deploy
build-package:
stage: build
script:
- apt update || apt -y install ca-certificates && apt update
# Uncomment to install dependencies
# - apt -y install iri-<package_name>-dev
- apt -y install iri-iriutils-dev iri-comm-dev iri-trajectory-dev iri-dynamixel-dev
- apt install -y libxerces-c-dev xsdcxx
- 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 *dynamixel-motor-cont*.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 dynamixel-motor-cont $(lsb_release -cs)"
only:
- tags
variables:
GIT_SUBMODULE_STRATEGY: recursive
FROM_RDEPENDS_CI: "false"
TAG_VERSION: $CI_COMMIT_TAG
PACKAGE_NAME: "dynamixel-motor-cont"
include:
remote: 'https://gitlab.iri.upc.edu/labrobotica/packaging_ci/-/raw/master/packaging-ci.yml'
\ No newline at end of file
...@@ -84,6 +84,8 @@ IF (UNIX) ...@@ -84,6 +84,8 @@ IF (UNIX)
SET(CPACK_PACKAGING_INSTALL_PREFIX /usr) SET(CPACK_PACKAGING_INSTALL_PREFIX /usr)
SET(CPACK_GENERATOR "DEB") SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "labrobotica - labrobotica@iri.upc.edu") SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "labrobotica - labrobotica@iri.upc.edu")
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://gitlab.iri.upc.edu/labrobotica/drivers/dynamixel_motor_cont")
# Uncomment to add the necessary mantainer scripts # 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") SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/scripts/debian/postinst;${CMAKE_SOURCE_DIR}/scripts/debian/prerm")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment