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

Adapted to package generation

parent c953102a
No related branches found
No related tags found
No related merge requests found
image: docker.io/evili/labrobotica
image: docker.io/alopeziri/labrobotica
cmake-build:
stages:
- build
- test
- deploy
build-package:
stage: build
script:
- mkdir -pv Build
- cd Build
- cmake -D CMAKE_BUILD_TYPE=Debug ..
- make
# - apt-get update
# - apt-get -y --allow-unauthenticated 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/
- bin/
- lib/
- build/*.deb
expire_in: 2 weeks
only:
- tags
# unit-test:
# stage: test
# script:
# - cd Build
# - ctest --timeout 15 --verbose -T test
# - ctest --timeout 15 --verbose -T memcheck
# artifacts:
# paths:
# - Build/
coverage:
update_repo:
stage: deploy
script:
- cd Build
- ctest --timeout 15 --verbose -T coverage
pages:
script:
- cd Build
- apt-get update
- apt-get install -y ttf-freefont graphviz
- make doc
- mv ../doc/html/ ../public/
artifacts:
paths:
- public/
- cd build
- "scp -i /root/.ssh/iriLabKeyNopwd -r *iriutils*.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 iriutils"
only:
- master
- 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