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

Added gitlab continuous integration. Adapted to the .deb package generation when creating a tag

parent 419a22dd
No related branches found
No related tags found
No related merge requests found
Pipeline #3224 failed
image: docker.io/alopeziri/labrobotica
stages:
- build
- test
- deploy
build-package:
stage: build
script:
# Uncomment to install dependencies
# - apt-get update
# - apt-get -y --allow-unauthenticated install iri-<package_name>-dev
- apt-get update
- apt-get -y --allow-unauthenticated install iri-iriutils-dev
- apt-get install -y 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 *trajectory*.deb irilabo@147.83.76.226:packages/"
- "ssh irilabo@147.83.76.226 -i /root/.ssh/iriLabKeyNopwd -tt /home/irilabo/repo_scripts/update_repo.sh trajectory"
only:
- tags
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