The TS-GitLab will have to shut down towards the end of the year — please think about migrating your projects to GitLab.com or GitHub.
(This is still a very early message, meant to keep you informed. There will be more urgent ones in the future.)

.gitlab-ci.yml 818 Bytes
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
variables:
  DUNE_CONTROL_PATH: /opt/dune:$CI_PROJECT_DIR
Dion Haefner's avatar
Dion Haefner committed
5
  COMPILER_FLAGS: -O3
Dion Haefner's avatar
Dion Haefner committed
6 7 8

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

Dion Haefner's avatar
Dion Haefner committed
10
stages:
Dion Haefner's avatar
Dion Haefner committed
11
  - main
Dion Haefner's avatar
Dion Haefner committed
12

Dion Haefner's avatar
Dion Haefner committed
13
main_job:
Dion Haefner's avatar
Dion Haefner committed
14
  script:
Dion Haefner's avatar
Dion Haefner committed
15
    - export CMAKE_FLAGS="-DCMAKE_CXX_FLAGS='$COMPILER_FLAGS'"
Dion Haefner's avatar
Dion Haefner committed
16
    - ./dune-common/bin/dunecontrol --only=dorie all
Dion Haefner's avatar
Dion Haefner committed
17
    - ./dune-common/bin/dunecontrol --only=dorie make install
Dion Haefner's avatar
Dion Haefner committed
18 19
    - ARGS="--output-on-failure" ./dune-common/bin/dunecontrol --only=dorie make test
  stage: main
20 21 22 23

update_dune_job:
  script:
    - export CMAKE_FLAGS="-DCMAKE_CXX_FLAGS='$COMPILER_FLAGS'"
Dion Haefner's avatar
Dion Haefner committed
24
    - ./dune-common/bin/dunecontrol update || true
25
    - ./dune-common/bin/dunecontrol --module=dorie all
26
    - ./dune-common/bin/dunecontrol --module=dorie make install
27 28
    - ARGS="--output-on-failure" ./dune-common/bin/dunecontrol --only=dorie make test
  stage: main