-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
70 lines (61 loc) · 1.54 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
stages:
- build
- error_clean
- test
- documentation
- deploy
cache:
key: "$CI_BUILD_REF"
paths:
- build_gnu/
- doc/doxygen/doxygen
- doc/Meshformat/Meshformat.pdf
build_gnu:
stage: build
tags:
- flexitag
script:
- mkdir -p build_gnu ; cd build_gnu
- if [ -n "${DO_NIGHTLY}" ]; then cmake .. ; fi
- if [ -z "${DO_NIGHTLY}" ]; then cmake .. -DLIBS_BUILD_HDF5=OFF ; fi
- make all
clean:
stage: error_clean
tags:
- flexitag
script:
- rm -rf build_gnu
- rm -rf share
when: on_failure
run_gnu:
stage: test
tags:
- flexitag
script:
- cd tutorials ; ./executeall.sh ../build_gnu/bin/hopr
doxygen:
stage: documentation
tags:
- flexitag
script:
- cd doc/doxygen ; ./builddoxy.sh
meshformat:
stage: documentation
tags:
- flexitag
script:
- cd doc/Meshformat ; make
deploy_homepage:
stage: deploy
tags:
- flexitag
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:
- flexitag
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 ../