From 2f7232f3d9f83c2c7aadaf65716a1b5a9b50c4d9 Mon Sep 17 00:00:00 2001 From: Fernando Herrero <fherrero@iri.upc.edu> Date: Fri, 5 Feb 2021 13:19:05 +0100 Subject: [PATCH] Add new file --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..adb0ffc --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +image: docker.io/labrobotica/labrobotica + +stages: + - build + - test + - deploy + +build-package: + stage: build + script: +# Uncomment to install dependencies +# - apt update +# - apt -y install iri-<package_name>-dev + - apt update + - apt -y install iri-iriutils-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 *autonomous-driving-tools*.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 autonomous-driving-tools" + only: + - tags -- GitLab