From b121e4116fa72c9ba6fdf854257cefefa2fea423 Mon Sep 17 00:00:00 2001 From: fherrero <fherrero@iri.upc.edu> Date: Mon, 23 Sep 2019 12:33:01 +0200 Subject: [PATCH] Add ignore and ci files --- .gitignore | 3 +++ .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ CMakeLists.txt | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..638c8d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +bin +build +lib diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3476639 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,36 @@ +image: docker.io/labrobotica/labrobotica + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +stages: + - build + - test + - deploy + +build-package: + stage: build + script: + - apt update + - apt -y install iri-iriutils-dev iri-comm-dev iri-segway-rmp-200-dev + - mkdir -pv build + - cd build + - cmake -DCMAKE_BUILD_TYPE=RELEASE -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG .. + - ls .. + - 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 *segway-rmp-400*.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 segway-rmp-400" + only: + - tags diff --git a/CMakeLists.txt b/CMakeLists.txt index f75fabb..8108e39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,7 @@ IF (UNIX) # Uncomment to add dependencies comma separated # SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-<package_name>-dev (>= 1.0~${DISTRIB})") - SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-iriutils-dev (>= 1.0~${DISTRIB}), iri-comm-dev (>= 1.0~${DISTRIB}), iri-segway-rmp-200 (>= 1.0~${DISTRIB})") + SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-iriutils-dev (>= 1.0~${DISTRIB}), iri-comm-dev (>= 1.0~${DISTRIB}), iri-segway-rmp-200-dev (>= 1.0~${DISTRIB})") INCLUDE(CPack) ELSE(UNIX) -- GitLab