-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
175 lines (144 loc) · 2.66 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
stages:
- gitsync
- createBase
- syntax-check
- xunit
- vanessa
- ACC
- Sonar
- Allure
gitsync:
stage: gitsync
only:
- schedules
tags:
- OneS
script:
- gitsync sync -u ci-bot -p 12345678 C:\Train_04_20\Develop\V8storage src\cf
- git push http://ci-bot:[email protected]/root/Train_04_20 HEAD:develop
Создание тестовой базы:
except:
- schedules
stage: createBase
only:
refs:
- develop
tags:
- OneS
script:
- vrunner init-dev --dt C:\Train_04_20\Template\course.dt --db-user Администратор --src src/cf
Синтаксический контроль:
except:
- schedules
stage: syntax-check
variables:
GIT_STRATEGY: none
only:
refs:
- develop
tags:
- OneS
script:
- vrunner syntax-check
artifacts:
reports:
junit:
out/syntax-check/junit/junit.xml
Дымовые тесты:
except:
- schedules
stage: xunit
variables:
GIT_STRATEGY: none
allow_failure: true
only:
refs:
- develop
tags:
- OneS
script:
- runner xunit
artifacts:
reports:
junit:
out/*.xml
vanessa:
except:
- schedules
stage: vanessa
variables:
GIT_STRATEGY: none
allow_failure: true
only:
refs:
- develop
tags:
- OneS
script:
- runner vanessa
АПК:
except:
- schedules
stage: ACC
variables:
GIT_STRATEGY: none
allow_failure: true
only:
refs:
- develop
tags:
- OneS
script:
- runner run --ibconnection /FC:/Train_04_20/Template/ACC --db-user="" --db-pwd="" --command "acc.catalog=$env:CI_PROJECT_DIR;acc.propertiesPaths=./tools/acc-export/acc.properties;" --execute "./tools/acc-export/acc-export.epf" --ordinaryapp=1
Sonar:
except:
- schedules
stage: Sonar
variables:
GIT_STRATEGY: none
allow_failure: true
only:
refs:
- develop
tags:
- OneS
script:
- C:\sonar-scanner\bin\sonar-scanner -D sonar.login=b398eb45331f9fc123b352b4cf96d320cfeef8cd -D sonar.projectVersion=$env:CI_BUILD_ID
Allure:
except:
- schedules
stage: Allure
variables:
GIT_STRATEGY: none
allow_failure: true
only:
refs:
- develop
tags:
- OneS
script:
- allure generate out/syntax-check/allure out/allure/smoke out/allure -c -o out/allure-result
artifacts:
paths:
- out/allure-result
# stages:
# - ping1
# - ping2
# ping:
# stage: ping1
# only:
# refs:
# - develop
# tags:
# - OneS
# script:
# - ping 8.8.8.8
# ping2:
# stage: ping2
# only:
# refs:
# - master
# tags:
# - OneS
# script:
# - ping 8.8.8.8