diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..638c8d2a4f126823299db9c14b149df08d613908 --- /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 0000000000000000000000000000000000000000..3476639cd9c07a40bdb928e69d11083fefdfd45c --- /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 f75fabbf0e9ccb0a3de2b194b59547b7a1d7f16c..8108e3934631995c256075806cbbcaaea6d9f813 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)