Skip to content
Snippets Groups Projects
.gitlab-ci.yml 3.68 KiB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
# https://rainboard.laas.fr/project/eigenpy/.gitlab-ci.yml

Guilhem Saurel's avatar
Guilhem Saurel committed
variables:
  CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
  CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"

cache:
  paths:
    - ccache

.robotpkg-py-eigenpy: &robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  retry:
    max: 2
    when: runner_system_failure
Guilhem Saurel's avatar
Guilhem Saurel committed
  except:
    - gh-pages
  script:
    - mkdir -p ccache
Guilhem Saurel's avatar
Guilhem Saurel committed
    - cd /root/robotpkg/math
Guilhem Saurel's avatar
Guilhem Saurel committed
    - git pull
Guilhem Saurel's avatar
Guilhem Saurel committed
    - cd py-eigenpy
    - make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
Guilhem Saurel's avatar
Guilhem Saurel committed
    - make install
Guilhem Saurel's avatar
Guilhem Saurel committed
    - build=$(make show-var VARNAME=CONFIGURE_DIRS); cd $(make show-var VARNAME=WRKSRC); cd $build
    - make test
Guilhem Saurel's avatar
Guilhem Saurel committed

robotpkg-py-eigenpy-16.04-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:16.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-py-eigenpy-16.04-release:
Guilhem Saurel's avatar
Guilhem Saurel committed
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:16.04
Guilhem Saurel's avatar
Guilhem Saurel committed
robotpkg-py-eigenpy-py3-16.04-debug:
Guilhem Saurel's avatar
Guilhem Saurel committed
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:16.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-py-eigenpy-py3-16.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:16.04

robotpkg-py-eigenpy-py3-18.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:18.04
Guilhem Saurel's avatar
Guilhem Saurel committed
robotpkg-py-eigenpy-py3-18.04-debug:
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:18.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

Guilhem Saurel's avatar
Guilhem Saurel committed
robotpkg-py-eigenpy-18.04-release:
Guilhem Saurel's avatar
Guilhem Saurel committed
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:18.04
Guilhem Saurel's avatar
Guilhem Saurel committed
robotpkg-py-eigenpy-18.04-debug:
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:18.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

Guilhem Saurel's avatar
Guilhem Saurel committed
robotpkg-py-eigenpy-stretch-debug:
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:stretch
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf
Guilhem Saurel's avatar
Guilhem Saurel committed
robotpkg-py-eigenpy-stretch-release:
Guilhem Saurel's avatar
Guilhem Saurel committed
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:stretch
Guilhem Saurel's avatar
Guilhem Saurel committed
robotpkg-py-eigenpy-py3-stretch-release:
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:stretch

robotpkg-py-eigenpy-py3-stretch-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:stretch
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

Guilhem Saurel's avatar
Guilhem Saurel committed
doc-coverage:
Guilhem Saurel's avatar
Guilhem Saurel committed
  <<: *robotpkg-py-eigenpy
Guilhem Saurel's avatar
Guilhem Saurel committed
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:18.04
  before_script:
Guilhem Saurel's avatar
Guilhem Saurel committed
    - echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf
  after_script:
    - cd /root/robotpkg/math/py-eigenpy
    - build=$(make show-var VARNAME=CONFIGURE_DIRS); cd $(make show-var VARNAME=WRKSRC); cd $build
    - 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/
Guilhem Saurel's avatar
Guilhem Saurel committed
format:
  allow_failure: true
  image: gepetto/linters
  retry:
    max: 2
    when: runner_system_failure
  before_script:
    - test -f /builds/setup.cfg || ln -s /root/setup.cfg /builds
    - test -f /builds/.clang-format || ln -s /root/.clang-format /builds
  script:
    - check-clang-format.sh
    - flake8 .
    - yapf -dr .