Skip to content
Snippets Groups Projects
.gitlab-ci.yml 5 KiB
Newer Older
# http://rainboard.laas.fr/project/pinocchio/.gitlab-ci.yml

  GIT_SUBMODULE_STRATEGY: "recursive"
jcarpent's avatar
jcarpent committed
  CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
  CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
  CTEST_PARALLEL_LEVEL: 4
Guilhem Saurel's avatar
Guilhem Saurel committed

cache:
  paths:
jcarpent's avatar
jcarpent committed
    - ccache
.robotpkg-pinocchio: &robotpkg-pinocchio
jcarpent's avatar
jcarpent committed
  except:
    - gh-pages
Guilhem Saurel's avatar
Guilhem Saurel committed
    - make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
    - make install
    - cd $(make show-var VARNAME=WRKSRC)
robotpkg-pinocchio-14.04-release:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
jcarpent's avatar
jcarpent committed

robotpkg-pinocchio-14.04-debug:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
  before_script:
    - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-pinocchio-16.04-release:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:16.04
jcarpent's avatar
jcarpent committed

robotpkg-pinocchio-16.04-debug:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:16.04
  before_script:
    - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-pinocchio-18.04-release:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:18.04
robotpkg-pinocchio-18.04-debug:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:18.04
  before_script:
    - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

.robotpkg-py-pinocchio: &robotpkg-py-pinocchio
  except:
    - gh-pages
  script:
Guilhem Saurel's avatar
Guilhem Saurel committed
    - make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
Guilhem Saurel's avatar
Guilhem Saurel committed
    - make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
    - cd $(make show-var VARNAME=WRKSRC)
    - make test
robotpkg-py-pinocchio-14.04-release:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
robotpkg-py-pinocchio-py3-14.04-release:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
  allow_failure: true
robotpkg-py-pinocchio-14.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-14.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
  allow_failure: true
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-16.04-release:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
robotpkg-py-pinocchio-py3-16.04-release:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
  allow_failure: true
robotpkg-py-pinocchio-16.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-16.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
  allow_failure: true
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-18.04-release:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04

robotpkg-py-pinocchio-18.04-release:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04

robotpkg-py-pinocchio-18.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-18.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
  before_script:
    - echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf
  after_script:
    - cd /root/robotpkg/math/py-pinocchio
    - cd $(make show-var VARNAME=WRKSRC)
    - make doc
    - mv doc/doxygen-html ${CI_PROJECT_DIR}
    - mkdir -p ${CI_PROJECT_DIR}/coverage/
    - gcovr -r . --exclude .*bindings/python
    - gcovr -r . --exclude .*bindings/python --html --html-details -o ${CI_PROJECT_DIR}/coverage/index.html
  artifacts:
    expire_in: 1 day
    paths:
      - doxygen-html/
      - coverage/