Skip to content

Commit d0c9cf7

Browse files
author
David Ferlay
authored
Merge pull request #137 from skilld-labs/ci-tags
Put all runner's tags into one place
2 parents b0064b8 + 4133d3c commit d0c9cf7

File tree

3 files changed

+15
-8894
lines changed

3 files changed

+15
-8894
lines changed

.gitlab-ci.yml

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
# - SONAR_HOST // Optional
44
# - SONAR_TOKEN // Optional
55

6+
# Tags defines which runner to use (expected shell runner)
7+
.ra_tags_branches: &ra_tags_branches
8+
tags:
9+
- review-apps-4
10+
only:
11+
- branches
12+
613
image: skilldlabs/php:72
714

815
variables:
@@ -37,8 +44,7 @@ sniffers:phpcs:
3744
- ls -lah
3845
- docker -v
3946
- make phpcs
40-
tags:
41-
- review-apps-4
47+
<<: *ra_tags_branches
4248

4349
sniffers:sonarqube:
4450
stage: sniffers
@@ -65,12 +71,9 @@ sniffers:sonarqube:
6571
- (if [ -d ${BUILD_DIR} ]; then date; cd ${BUILD_DIR}; pwd; make clean; cd -; rm -rf ${BUILD_DIR}; fi)
6672
script:
6773
- echo "Removed previous review app ${CI_ENVIRONMENT_URL} from ${BUILD_DIR}."
68-
only:
69-
- branches
70-
tags:
71-
- review-apps-4
7274
dependencies:
7375
- sniffers:phpcs
76+
<<: *ra_tags_branches
7477

7578
deploy:review:
7679
<<: *job_deploy_commit
@@ -128,12 +131,9 @@ test:behat:
128131
- mkdir web/screenshots
129132
- mv features/*.png web/screenshots/
130133
- echo "- Screenshots are available here :" && cd web/screenshots && ls -h *.png | xargs -i echo "${CI_ENVIRONMENT_URL}/screenshots/{}"
131-
tags:
132-
- review-apps-4
133134
dependencies:
134135
- deploy:review
135-
only:
136-
- branches
136+
<<: *ra_tags_branches
137137

138138
test:cinsp:
139139
stage: tests
@@ -146,12 +146,9 @@ test:cinsp:
146146
- cd ${BUILD_DIR}
147147
- pwd
148148
- make cinsp
149-
tags:
150-
- review-apps-4
151149
dependencies:
152150
- deploy:review
153-
only:
154-
- branches
151+
<<: *ra_tags_branches
155152

156153
test:drupalcheck:
157154
stage: tests
@@ -165,12 +162,9 @@ test:drupalcheck:
165162
- pwd
166163
- ls -lah
167164
- make drupalcheckval
168-
tags:
169-
- review-apps-4
170165
dependencies:
171166
- deploy:review
172-
only:
173-
- branches
167+
<<: *ra_tags_branches
174168

175169
test:contentgen:
176170
stage: tests
@@ -183,12 +177,9 @@ test:contentgen:
183177
- cd ${BUILD_DIR}
184178
- pwd
185179
- make contentgen
186-
tags:
187-
- review-apps-4
188180
dependencies:
189181
- deploy:review
190-
only:
191-
- branches
182+
<<: *ra_tags_branches
192183
when: manual
193184

194185
report:statusreportval:
@@ -202,12 +193,9 @@ report:statusreportval:
202193
- cd ${BUILD_DIR}
203194
- pwd
204195
- make statusreportval
205-
tags:
206-
- review-apps-4
207196
dependencies:
208197
- deploy:review
209-
only:
210-
- branches
198+
<<: *ra_tags_branches
211199

212200
report:watchdog:
213201
stage: reports
@@ -220,9 +208,6 @@ report:watchdog:
220208
- cd ${BUILD_DIR}
221209
- pwd
222210
- make watchdogval
223-
tags:
224-
- review-apps-4
225211
dependencies:
226212
- deploy:review
227-
only:
228-
- branches
213+
<<: *ra_tags_branches

composer.json

100755100644
File mode changed.

0 commit comments

Comments
 (0)