.gitlab-ci.yml 1.26 KB
Newer Older
1
image: dorie/dune-env:2.5.1
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:
14 15
  tags:
    - docker
Dion Haefner's avatar
Dion Haefner committed
16
  script:
17
    - MAKE_FLAGS="-j 2" ./dune-common/bin/dunecontrol --only=dorie all
Dion Haefner's avatar
Dion Haefner committed
18
    - export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
19 20 21 22 23 24 25 26
    - 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
27

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

39
build:debug:
40 41
  tags:
    - docker
42
  script:
43
    - CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug" ./dune-common/bin/dunecontrol --only=dorie all
Dion Haefner's avatar
debug  
Dion Haefner committed
44
  stage: build
45

46
deploy:docs:
47 48
  tags:
    - docker
49
  script:
Dion Haefner's avatar
Dion Haefner committed
50
    - cd $CI_PROJECT_DIR && bash .deploy_docs
51 52 53
  stage: deploy
  only:
    - master
54
  allow_failure: true