.gitlab-ci.yml 526 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 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:
Dion Haefner's avatar
Dion Haefner committed
10
  - build
Dion Haefner's avatar
Dion Haefner committed
11
  - test
Dion Haefner's avatar
Dion Haefner committed
12 13 14

build_job:
  script:
Dion Haefner's avatar
Dion Haefner committed
15 16
    - ./dune-common/bin/dunecontrol --only=dorie all
    - ./dune-common/bin/dunecontrol --only=dorie make install
Dion Haefner's avatar
Dion Haefner committed
17
  stage: build
Dion Haefner's avatar
Dion Haefner committed
18 19
  artifacts:
    untracked: true
20 21
    paths:
      - /opt/dune/dune-python/
Dion Haefner's avatar
Dion Haefner committed
22 23 24

test_job:
  script:
Dion Haefner's avatar
Dion Haefner committed
25
    - ARGS="--output-on-failure" ./dune-common/bin/dunecontrol --only=dorie make test
Dion Haefner's avatar
Dion Haefner committed
26
  stage: test
Dion Haefner's avatar
Dion Haefner committed
27 28
  dependencies:
    - build_job