From 2a100510de999a9ff5d4b583657cea5a358596b4 Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Gestoso <alopez@iri.upc.edu> Date: Fri, 10 May 2019 13:36:12 +0200 Subject: [PATCH] Adapted to package generation --- .gitlab-ci.yml | 57 ++++++++++++++++++++------------------------------ 1 file changed, 23 insertions(+), 34 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0477a5a..9552cd3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,43 +1,32 @@ -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 + -- GitLab