.gitlab-ci.yml 2.06 KB
Newer Older
Florian Hindenlang's avatar
Florian Hindenlang committed
1
2
3
4
5
6
7

stages:
  - build
  - test

# ---------------------------------------------------------------------------------------------------------------------------------
# Stage "build"
Florian Hindenlang's avatar
Florian Hindenlang committed
8
# v>9 artifacts: name: "${CI_JOB_ID}_${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
Florian Hindenlang's avatar
Florian Hindenlang committed
9
10
11
12
# ---------------------------------------------------------------------------------------------------------------------------------
build_debug:
  stage: build 
  script: 
Florian Hindenlang's avatar
Florian Hindenlang committed
13
    - rm -rf build_debug || true
Florian Hindenlang's avatar
Florian Hindenlang committed
14
    - mkdir -p build_debug
Florian Hindenlang's avatar
Florian Hindenlang committed
15
    - cd ode-1 ; make clean ; make DEBUG=yes 2>../build_debug/stderr 1>../build_debug/stdout
Florian Hindenlang's avatar
Florian Hindenlang committed
16
    - cd ..
Florian Hindenlang's avatar
Florian Hindenlang committed
17
    - cat build_debug/stdout
Florian Hindenlang's avatar
Florian Hindenlang committed
18
    - mv ode-1/rk_solve build_debug/.
Florian Hindenlang's avatar
Florian Hindenlang committed
19
  artifacts:
Florian Hindenlang's avatar
Florian Hindenlang committed
20
    name: "${CI_BUILD_ID}_${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
Florian Hindenlang's avatar
Florian Hindenlang committed
21
    untracked: true
Florian Hindenlang's avatar
Florian Hindenlang committed
22
    expire_in: 4 weeks
Florian Hindenlang's avatar
Florian Hindenlang committed
23
    when: always
Florian Hindenlang's avatar
Florian Hindenlang committed
24
25
26
27
28
29
    paths:
    - build_debug

build_release:
  stage: build 
  script: 
Florian Hindenlang's avatar
Florian Hindenlang committed
30
    - rm -rf build_release || true
Florian Hindenlang's avatar
Florian Hindenlang committed
31
    - mkdir -p build_release
Florian Hindenlang's avatar
Florian Hindenlang committed
32
33
    - cd ode-1 ; make clean 
    - make DEBUG=no 2>../build_release/stderr 1>../build_release/stdout
Florian Hindenlang's avatar
Florian Hindenlang committed
34
    - cd ..
Florian Hindenlang's avatar
Florian Hindenlang committed
35
    - cat build_release/stdout
Florian Hindenlang's avatar
Florian Hindenlang committed
36
    - mv ode-1/rk_solve build_release/.
Florian Hindenlang's avatar
Florian Hindenlang committed
37
  artifacts:
Florian Hindenlang's avatar
Florian Hindenlang committed
38
    name: "${CI_BUILD_ID}_${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
Florian Hindenlang's avatar
Florian Hindenlang committed
39
    untracked: true
Florian Hindenlang's avatar
Florian Hindenlang committed
40
    expire_in: 4 weeks
Florian Hindenlang's avatar
Florian Hindenlang committed
41
    when: always
Florian Hindenlang's avatar
Florian Hindenlang committed
42
43
44
45
46
47
48
49
50
    paths:
    - build_release

# ---------------------------------------------------------------------------------------------------------------------------------
# Stage "test" 
# ---------------------------------------------------------------------------------------------------------------------------------
test_debug:
  stage: test
  script: 
51
    - cd testing ; python3 run_tests.py -execpath build_debug/rk_solve
Florian Hindenlang's avatar
Florian Hindenlang committed
52
  artifacts:
Florian Hindenlang's avatar
Florian Hindenlang committed
53
    name: "${CI_BUILD_ID}_${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
54
    untracked: true
Florian Hindenlang's avatar
Florian Hindenlang committed
55
    expire_in: 4 weeks
56
    when: always
Florian Hindenlang's avatar
Florian Hindenlang committed
57
    paths:
Florian Hindenlang's avatar
Florian Hindenlang committed
58
    - testing
Florian Hindenlang's avatar
Florian Hindenlang committed
59

Florian Hindenlang's avatar
Florian Hindenlang committed
60
test_release:
Florian Hindenlang's avatar
Florian Hindenlang committed
61
62
  stage: test
  script: 
63
    - cd testing ;  python3 run_tests.py -execpath build_release/rk_solve
Florian Hindenlang's avatar
Florian Hindenlang committed
64
  artifacts:
Florian Hindenlang's avatar
Florian Hindenlang committed
65
    name: "${CI_BUILD_ID}_${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
66
    untracked: true
Florian Hindenlang's avatar
Florian Hindenlang committed
67
    expire_in: 4 weeks
68
    when: always
Florian Hindenlang's avatar
Florian Hindenlang committed
69
    paths:
Florian Hindenlang's avatar
Florian Hindenlang committed
70
    - testing