.gitlab-ci.yml 1.1 KB
Newer Older
Dion Haefner's avatar
typo  
Dion Haefner committed
1
image: dorie/dune-env:2.4
Dion Haefner's avatar
Dion Haefner committed
2

Dion Haefner's avatar
Dion Haefner committed
3 4 5 6 7
variables:
  DUNE_CONTROL_PATH: /opt/dune:$CI_PROJECT_DIR

before_script:
  - cd /opt/dune
Dion Haefner's avatar
Dion Haefner committed
8

Dion Haefner's avatar
Dion Haefner committed
9
stages:
10 11
  - build
  - deploy
Dion Haefner's avatar
Dion Haefner committed
12

13
build:main:
Dion Haefner's avatar
Dion Haefner committed
14
  script:
Dion Haefner's avatar
Dion Haefner committed
15
    - ./dune-common/bin/dunecontrol --only=dorie all
Dion Haefner's avatar
Dion Haefner committed
16
    - export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
17 18 19 20 21 22 23 24
    - ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test
    - ./dune-common/bin/dunecontrol --only=dorie make doc
  stage: build
  artifacts:
    name: "$CI_BUILD_NAME"
    paths:
      - $CI_PROJECT_DIR/build-cmake/doc/html/
    expire_in: 1 week
25

26
build:update_dune:
27
  script:
Dion Haefner's avatar
Dion Haefner committed
28
    - ./dune-common/bin/dunecontrol update || true
29 30
    - ./dune-common/bin/dunecontrol exec "rm -rf build-cmake"
    - ./dune-common/bin/dunecontrol all
Dion Haefner's avatar
Dion Haefner committed
31
    - export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
32 33 34
    - ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test
  stage: build

35 36 37 38
build:debug:
  script:
    - CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug" ./dune-common/bin/dunecontrol --only=dorie all

39 40
deploy:docs:
  script:
Dion Haefner's avatar
Dion Haefner committed
41
    - cd $CI_PROJECT_DIR && bash .deploy_docs
42 43 44
  stage: deploy
  only:
    - master