From 24596af237af14d624c53b76a051aad5190b2685 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Wed, 25 Jul 2018 15:18:19 +0200 Subject: [PATCH] [CI] add .gitlab-ci.yml & badges --- .gitlab-ci.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 +++- cmake | 2 +- 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..816c8b8 --- /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-hpp-statistics: &robotpkg-hpp-statistics + except: + - gh-pages + script: + - mkdir -p ccache + - cd /root/robotpkg/path/hpp-statistics + - git pull + - make checkout MASTER_REPOSITORY="dir ${CI_PROJECT_DIR}" + - make install + - cd work.$(hostname)/$(make show-var VARNAME=DISTNAME) + - make test + +robotpkg-hpp-statistics-14.04-release: + <<: *robotpkg-hpp-statistics + image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-statistics/hpp-statistics:14.04 + +robotpkg-hpp-statistics-16.04-release: + <<: *robotpkg-hpp-statistics + image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-statistics/hpp-statistics:16.04 + +robotpkg-hpp-statistics-18.04-release: + <<: *robotpkg-hpp-statistics + image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-statistics/hpp-statistics:18.04 + +doc-coverage: + <<: *robotpkg-hpp-statistics + image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-statistics/hpp-statistics:16.04 + before_script: + - echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf + after_script: + - cd /root/robotpkg/path/hpp-statistics + - 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 8ee4056..af64f43 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # hpp-statistics -[](https://travis-ci.org/humanoid-path-planner/hpp-statistics) +[](https://travis-ci.org/humanoid-path-planner/hpp-statistics) +[](https://gepgitlab.laas.fr/humanoid-path-planner/hpp-statistics/commits/master) +[](http://projects.laas.fr/gepetto/doc/humanoid-path-planner/hpp-statistics/master/coverage/) This package is part of the [HPP] software and provides a few tools for basic statistics. diff --git a/cmake b/cmake index d22de8c..7cdd214 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit d22de8c53c3507df785b1fb3ab260d9fdfb65233 +Subproject commit 7cdd2146508a3431adb8e5a0d4233704080299cd -- GitLab