-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
149 lines (124 loc) · 3.65 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
stages:
- solution_01_build
- solution_01_test
- solution_02_build
- solution_02_build_view_dat
- solution_02_build_view_stat
- solution_03_build
- solution_04_build
- solution_04_test
- solution_07_build
- solution_08_build
- code_manager_build
- code_manager_test
solution_01_build_job:
stage: solution_01_build
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/01
- cd ${BUILD_DIR}
script:
- make
solution_01_test_job:
stage: solution_01_test
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/01
- cd ${BUILD_DIR}
script:
- make testing
- ./lpslcd.test
- make coverage
coverage: /^\s*lines.*:\s*\d+.\d+\%/
solution_02_build_job:
stage: solution_02_build
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/02
- cd ${BUILD_DIR}
script:
- make
solution_02_build_view_dat_job:
stage: solution_02_build_view_dat
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/02
- cd ${BUILD_DIR}
script:
- gcc view.dat.c -Wall -Wextra -o view.dat
solution_02_build_view_stat_job:
stage: solution_02_build_view_stat
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/02
- cd ${BUILD_DIR}
script:
- gcc view.stat.c -Wall -Wextra -o view.stat
solution_03_build_job:
stage: solution_03_build
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/03/build
- mkdir -p ${BUILD_DIR}
- cd ${BUILD_DIR}
- cmake -DCMAKE_BUILD_TYPE=Debug ${BUILD_DIR}/..
script:
- make
solution_04_build_job:
stage: solution_04_build
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/04
- cd ${BUILD_DIR}
script:
- make
solution_04_test_job:
stage: solution_04_test
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/04
- cd ${BUILD_DIR}
script:
- make testing
- ./lpslcd.test
- make coverage
coverage: /^\s*lines.*:\s*\d+.\d+\%/
solution_07_build_job:
stage: solution_07_build
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/07
- cd ${BUILD_DIR}
script:
- make
solution_08_build_job:
stage: solution_08_build
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Solutions/08
- cd ${BUILD_DIR}
script:
- make
code_manager_build_job:
stage: code_manager_build
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Tools/CodeManager/build
- mkdir -p ${BUILD_DIR}
- cd ${BUILD_DIR}
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/qt/5.15.2 ${BUILD_DIR}/..
script:
- make
code_manager_test_job:
stage: code_manager_test
image: registry.gitlab.com/gluttton/pslrk:qt5.15.2
before_script:
- BUILD_DIR=`pwd`/Tools/CodeManager/build
- mkdir -p ${BUILD_DIR}
- cd ${BUILD_DIR}
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/qt/5.15.2 ${BUILD_DIR}/..
script:
- make tests
- ./Core/test/CodeManagerCoreTest
- make coverage
coverage: /^\s*lines.*:\s*\d+.\d+\%/