Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.34 KiB
Newer Older
variables:
    GIT_SSL_NO_VERIFY: "true"
    GIT_SUBMODULE_STRATEGY: "recursive"
    GIT_DEPTH: "3"

Guilhem Saurel's avatar
Guilhem Saurel committed
stages:
  - minimal
  - full

cache:
  paths:
    - build/ccache

.build_template: &build
    script:
Guilhem Saurel's avatar
Guilhem Saurel committed
        - mkdir -p build/ccache
Guilhem Saurel's avatar
Guilhem Saurel committed
        - export CCACHE_BASEDIR=${PWD}
        - export CCACHE_DIR=${PWD}/ccache
        - cmake .. -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
        - make
        - make test
        - make install

build_minimal_14:
    <<: *build
    image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:14.04
Guilhem Saurel's avatar
Guilhem Saurel committed
    stage: minimal

build_full_14:
    <<: *build
    image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:14.04
Guilhem Saurel's avatar
Guilhem Saurel committed
    stage: full
    dependencies:
      - build_minimal_14

build_minimal_16:
    <<: *build
    image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:16.04
Guilhem Saurel's avatar
Guilhem Saurel committed
    stage: minimal

build_full_16:
    <<: *build
    image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:16.04
Guilhem Saurel's avatar
Guilhem Saurel committed
    stage: full
    dependencies:
      - build_minimal_16
Guilhem Saurel's avatar
Guilhem Saurel committed

build_minimal_zesty:
    <<: *build
    image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/minimal:zesty
Guilhem Saurel's avatar
Guilhem Saurel committed
    stage: minimal
    allow_failure: true
Guilhem Saurel's avatar
Guilhem Saurel committed

build_full_zesty:
    <<: *build
    image: eur0c.laas.fr:4567/stack-of-tasks/pinocchio/full:zesty
Guilhem Saurel's avatar
Guilhem Saurel committed
    stage: full
    dependencies:
      - build_minimal_zesty
    allow_failure: true