From 22b3b38deb796536a888eae8780a6d74088c0189 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Wed, 25 Jul 2018 17:23:44 +0200 Subject: [PATCH 1/2] [CI] add .gitlab-ci.yml & badges --- .gitlab-ci.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 5 +++++ 2 files changed, 58 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..9a1e84f5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,53 @@ +variables: + GIT_SUBMODULE_STRATEGY: "recursive" + GIT_DEPTH: "3" + CCACHE_BASEDIR: "${CI_PROJECT_DIR}" + CCACHE_DIR: "${CI_PROJECT_DIR}/ccache" + +cache: + paths: + - ccache + +.robotpkg-tsid: &robotpkg-tsid + except: + - gh-pages + script: + - mkdir -p ccache + - cd /root/robotpkg/wip/tsid + - git pull + - make checkout MASTER_REPOSITORY="dir ${CI_PROJECT_DIR}" + - make install + - cd work.$(hostname)/$(make show-var VARNAME=DISTNAME) + - make test + +robotpkg-tsid-14.04-release: + <<: *robotpkg-tsid + image: eur0c.laas.fr:5000/stack-of-tasks/tsid/tsid:14.04 + +robotpkg-tsid-16.04-release: + <<: *robotpkg-tsid + image: eur0c.laas.fr:5000/stack-of-tasks/tsid/tsid:16.04 + +robotpkg-tsid-18.04-release: + <<: *robotpkg-tsid + image: eur0c.laas.fr:5000/stack-of-tasks/tsid/tsid:18.04 + +doc-coverage: + <<: *robotpkg-tsid + image: eur0c.laas.fr:5000/stack-of-tasks/tsid/tsid:16.04 + before_script: + - echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf + after_script: + - cd /root/robotpkg/wip/tsid + - cd work.$(hostname)/$(make show-var VARNAME=DISTNAME) + - make doc + - mv doc/doxygen-html ${CI_PROJECT_DIR} + - mkdir -p ${CI_PROJECT_DIR}/coverage/ + - gcovr -r . + - gcovr -r . --html --html-details -o ${CI_PROJECT_DIR}/coverage/index.html + artifacts: + expire_in: 1 day + paths: + - doxygen-html/ + - coverage/ + diff --git a/README.md b/README.md index 24436ff4..b4abb652 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ # TSID - Task Space Inverse Dynamics + +[![Building Status](https://travis-ci.org/stack-of-tasks/tsid.svg?branch=master)](https://travis-ci.org/stack-of-tasks/tsid) +[![Pipeline status](https://gepgitlab.laas.fr/stack-of-tasks/tsid/badges/master/pipeline.svg)](https://gepgitlab.laas.fr/stack-of-tasks/tsid/commits/master) +[![Coverage report](https://gepgitlab.laas.fr/stack-of-tasks/tsid/badges/master/coverage.svg?job=doc-coverage)](http://projects.laas.fr/gepetto/doc/stack-of-tasks/tsid/master/coverage/) + TSID is C++ library for optimization-based inverse-dynamics control based on the rigid multi-body dynamics library [Pinocchio](https://github.com/stack-of-tasks/pinocchio). Take a look at the project [wiki](https://github.com/stack-of-tasks/tsid/wiki) for more details. From 4ec36db992ceaab77e6590911581b1f72f820b74 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Wed, 25 Jul 2018 17:23:56 +0200 Subject: [PATCH 2/2] sync submodules --- .travis | 2 +- cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis b/.travis index bad6dbd2..dc8b946d 160000 --- a/.travis +++ b/.travis @@ -1 +1 @@ -Subproject commit bad6dbd29cf70e852e5e427e876390d954ca7d6b +Subproject commit dc8b946d456d2c41ad12b819111b005148c68031 diff --git a/cmake b/cmake index bf10c6ca..8e7bedfc 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit bf10c6ca3565b96ab283edaa8f18b5b533e59da9 +Subproject commit 8e7bedfcbd8524c0401a58fd74edc07c3d4308d0