-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
150 lines (133 loc) · 3.06 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
before_script:
- apt-get update -qq
- export SCALE_SYS=Linux64-gnu-ompi
stages:
- build
- test
- doc
# BUILD
normal:
stage: build
script:
- apt-get install -y -qq libopenmpi-dev gfortran libnetcdf-dev libnetcdff-dev
- cd scale-rm/src
- make -j 4
- make -j 4 SCALE_USE_SINGLEFP=T
# - make -j 4 SCALE_QUICKDEBUT=T
- cd ../util/sno
- make -j 4
- cd ../../../scale-gm/src
- make -j 4
- make -j 4 SCALE_USE_SINGLEFP=T
only:
refs:
- merge_requests
changes:
- scalelib/src/**/*
- scale-rm/src/**/*
- scale-gm/src/**/*
openmp:
stage: build
script:
- apt-get install -y -qq libopenmpi-dev gfortran libnetcdf-dev libnetcdff-dev
- cd scale-rm/src
- make -j 4 SCALE_ENABLE_OPENMP=T
- cd ../../scale-gm/src
- make -j 4 SCALE_ENABLE_OPENMP=T
only:
refs:
- merge_requests
changes:
- scalelib/src/**/*
- scale-rm/src/**/*
- scale-gm/src/**/*
#debug-gm:
# stage: build
# script:
# - apt-get install -y -qq libopenmpi-dev gfortran libnetcdf-dev libnetcdff-dev
# - cd scale-gm/src
# - make -j 4 SCALE_QUICKDEBUT=T
# - make -j 4 SCALE_DEBUT=T
# only:
# refs:
# - merge_requests
# changes:
# - scalelib/src/**/*
# - scale-rm/src/**/*
# - scale-gm/src/**/*
# TEST
lib-unit:
stage: test
script:
- apt-get install -y -qq libopenmpi-dev gfortran libnetcdf-dev
- cd scalelib/test/unit
- make makedir
- make makelib
- make makebin
- mpirun --allow-run-as-root --oversubscribe -n 4 ./unit run.conf
only:
refs:
- merge_requests
changes:
- scalelib/**/*
- scale-rm/**/*
- scale-gm/**/*
# DOC
ug-en:
stage: doc
script:
- apt-get install -y -qq texlive-latex-base texlive-lang-japanese texlive-latex-recommended texlive-latex-extra
- cd doc/users-guide/en
- make
artifacts:
paths:
- doc/users-guide/en/scale_users_guide_En.pdf
expire_in: 1 mos
only:
refs:
- merge_requests
changes:
- doc/users-guide/en/*
ug-jp:
stage: doc
script:
- apt-get install -y -qq texlive-latex-base texlive-lang-japanese texlive-latex-recommended texlive-latex-extra
- cd doc/users-guide/jp
- make
artifacts:
paths:
- doc/users-guide/jp/scale_users_guide.pdf
expire_in: 1 mos
only:
refs:
- merge_requests
changes:
- doc/users-guide/jp/*
description:
stage: doc
script:
- apt-get install -y -qq texlive-latex-base texlive-lang-japanese texlive-science
- cd doc/descriptions
- make
artifacts:
paths:
- doc/descriptions/scale_rm_description.pdf
expire_in: 1 mos
only:
refs:
- merge_requests
changes:
- doc/users-guide/descriptions/*
reference:
stage: doc
script:
- apt-get install -y -qq doxygen graphviz
- apt-get install -y -qq texlive-latex-base texlive-lang-japanese texlive-fonts-extra
- cd doc/reference
- make
artifacts:
paths:
- doc/reference/latex/refman.pdf
- doc/reference/html/
expire_in: 1 mos
when: manual