default.yml 1.34 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
default:
  image: $IMAGE

cache:
  key: ${CI_COMMIT_REF_SLUG}-$IMAGE
  paths:
    - dep_modules

stages:
  - build
  - test

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE=="parent_pipeline"

build lecture:
  stage: build
  before_script:
    - mkdir -p dep_modules
    - pushd dep_modules
    - >
      if [ ! -d dune-foamgrid ]; then
        git clone -b releases/2.7 --depth 1 https://gitlab.dune-project.org/extensions/dune-foamgrid.git;
        dunecontrol --opts=/duneci/dune.opts --only=dune-foamgrid all;
      fi
    - >
      if [ ! -d dune-alugrid ]; then
        git clone -b releases/2.7 --depth 1 https://gitlab.dune-project.org/extensions/dune-alugrid.git;
        dunecontrol --opts=/duneci/dune.opts --make-options="-j8" --only=dune-alugrid all;
      fi
    - >
      if [ ! -d dumux ]; then
        git clone -b master --depth 1 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git;
        dunecontrol --opts=/duneci/dune.opts --only=dumux all
      fi
    - popd
  script:
    - cd ..
    - dunecontrol --opts=/duneci/dune.opts --only=dumux-lecture all
    - cd dumux-lecture/build-cmake
    - make -k -j 8 build_tests
  artifacts:
    paths:
      - build-cmake
    expire_in: 3 hours

test lecture:
  stage: test
  script:
    - cd build-cmake
    - duneci-ctest -j4 --no-tests=error
  needs:
    - job: build lecture
      artifacts: true