forked from flexi-framework/hopr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
91 lines (80 loc) · 2.11 KB
/
.gitlab-ci.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
stages:
- build
- error_clean
- test
- documentation
- deploy
cache:
key: "$CI_BUILD_REF"
paths:
- build_gnu/
- build_intel/
- doc/doxygen/doxygen
- doc/Meshformat/Meshformat.pdf
build_gnu:
stage: build
tags:
- withmodules
script:
- module load env/gnu ; rm -rf build_gnu || true
- mkdir -p build_gnu ; cd build_gnu
- if [ -n "${DO_NIGHTLY}" ]; then cmake .. ; fi
- if [ -z "${DO_NIGHTLY}" ]; then cmake .. -DHOPR_BUILD_HDF5=OFF ; fi
- make all
build_intel:
stage: build
tags:
- withmodules
script:
- module load env/intel ; rm -rf build_intel || true
- mkdir -p build_intel ; cd build_intel
- if [ -n "${DO_NIGHTLY}" ]; then cmake .. ; fi
- if [ -z "${DO_NIGHTLY}" ]; then cmake .. -DHOPR_BUILD_HDF5=OFF ; fi
- make all
clean:
stage: error_clean
tags:
- withmodules
script:
- rm -rf build_gnu
- rm -rf build_intel
- rm -rf share
when: on_failure
run_gnu:
stage: test
tags:
- withmodules
script:
- module load env/gnu ; cd tutorials ; ./executeall.sh ../build_gnu/bin/hopr
run_intel:
stage: test
tags:
- withmodules
script:
- module load env/intel ; cd tutorials ; ./executeall.sh ../build_intel/bin/hopr
doxygen:
stage: documentation
tags:
- pomodoro
script:
- cd doc/doxygen ; ./builddoxy.sh
meshformat:
stage: documentation
tags:
- pomodoro
script:
- cd doc/Meshformat ; make
deploy_homepage:
stage: deploy
tags:
- pomodoro
script:
- if [ -n "${DO_DEPLOY}" ]; then if [ -d "doc/doxygen/doxygen" ]; then ssh flexi@euler rm -rf homepage_hopr/doxygen ; scp -r doc/doxygen/doxygen flexi@euler:~/homepage_hopr/. ; fi ; fi
- if [ -n "${DO_DEPLOY}" ]; then if [ -f "doc/Meshformat/Meshformat.pdf" ]; then scp doc/Meshformat/Meshformat.pdf flexi@euler:~/homepage_hopr/. ; fi ; fi
deploy_github:
stage: deploy
tags:
- pomodoro
script:
- if [ -z "${DO_DEPLOY}" ]; then exit ; fi
- git clone --single-branch [email protected]:hopr/hopr.git hopr_github ; cd hopr_github ; git push --mirror [email protected]:flexi-framework/hopr.git ; cd ../