default.yml 1.01 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
default:
  image: $IMAGE

stages:
  - build
  - test

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

build lecture:
  stage: build
  before_script:
15
16
17
18
19
    - |
      if [ ! "${DUMUX_BRANCH}" ]; then
        DUMUX_BRANCH=master;
      else
        echo "Received branch name ${DUMUX_BRANCH} from upstream"
20
      fi
21
22
23
    - echo "Checking out branch ${DUMUX_BRANCH} in dumux"
    - git clone -b ${DUMUX_BRANCH} --depth 1 https://git.iws.uni-stuttgart.de/dumux-repositories/dumux.git
    - dunecontrol --opts=$DUNE_OPTS_FILE --only=dumux all
24
  script:
25
26
    - dunecontrol --opts=$DUNE_OPTS_FILE --current all
    - dunecontrol --opts=$DUNE_OPTS_FILE --current bexec make -k -j4 build_tests
27
28
29
  artifacts:
    paths:
      - build-cmake
30
      - dumux
31
32
33
34
35
    expire_in: 3 hours

test lecture:
  stage: test
  script:
36
    - dunecontrol --opts=$DUNE_OPTS_FILE --current bexec dune-ctest -j4 --output-on-failure
37
38
39
  needs:
    - job: build lecture
      artifacts: true
40
41
42
  artifacts:
    reports:
      junit: junit/dumux-lecture-cmake.xml