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

stages:
  - pages
  - minimal
  - full

cache:
  paths:
    - build/ccache

.build_template: &build
    script:
        - mkdir -p build/ccache
        - cd build
        - 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: ${CI_REGISTRY_IMAGE}/minimal:14.04
    stage: minimal
    retry: 2
    except:
      - gh-pages

build_full_14:
    <<: *build
    image: ${CI_REGISTRY_IMAGE}/full:14.04
    stage: full
    retry: 2
    except:
      - gh-pages
    dependencies:
      - build_minimal_14

build_minimal_16:
    <<: *build
    image: ${CI_REGISTRY_IMAGE}/minimal:16.04
    stage: minimal
    retry: 2
    except:
      - gh-pages

build_full_16:
    <<: *build
    image: ${CI_REGISTRY_IMAGE}/full:16.04
    stage: full
    retry: 2
    except:
      - gh-pages
    dependencies:
      - build_minimal_16

build_minimal_zesty:
    <<: *build
    image: ${CI_REGISTRY_IMAGE}/minimal:zesty
    stage: minimal
    retry: 2
    except:
      - gh-pages
    allow_failure: true