Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 15 additions & 30 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# - SONAR_HOST // Optional
# - SONAR_TOKEN // Optional

# Tags defines which runner to use (expected shell runner)
.ra_tags_branches: &ra_tags_branches
tags:
- review-apps-4
only:
- branches

image: skilldlabs/php:72

variables:
Expand Down Expand Up @@ -37,8 +44,7 @@ sniffers:phpcs:
- ls -lah
- docker -v
- make phpcs
tags:
- review-apps-4
<<: *ra_tags_branches

sniffers:sonarqube:
stage: sniffers
Expand All @@ -65,12 +71,9 @@ sniffers:sonarqube:
- (if [ -d ${BUILD_DIR} ]; then date; cd ${BUILD_DIR}; pwd; make clean; cd -; rm -rf ${BUILD_DIR}; fi)
script:
- echo "Removed previous review app ${CI_ENVIRONMENT_URL} from ${BUILD_DIR}."
only:
- branches
tags:
- review-apps-4
dependencies:
- sniffers:phpcs
<<: *ra_tags_branches

deploy:review:
<<: *job_deploy_commit
Expand Down Expand Up @@ -128,12 +131,9 @@ test:behat:
- mkdir web/screenshots
- mv features/*.png web/screenshots/
- echo "- Screenshots are available here :" && cd web/screenshots && ls -h *.png | xargs -i echo "${CI_ENVIRONMENT_URL}/screenshots/{}"
tags:
- review-apps-4
dependencies:
- deploy:review
only:
- branches
<<: *ra_tags_branches

test:cinsp:
stage: tests
Expand All @@ -146,12 +146,9 @@ test:cinsp:
- cd ${BUILD_DIR}
- pwd
- make cinsp
tags:
- review-apps-4
dependencies:
- deploy:review
only:
- branches
<<: *ra_tags_branches

test:drupalcheck:
stage: tests
Expand All @@ -165,12 +162,9 @@ test:drupalcheck:
- pwd
- ls -lah
- make drupalcheckval
tags:
- review-apps-4
dependencies:
- deploy:review
only:
- branches
<<: *ra_tags_branches

test:contentgen:
stage: tests
Expand All @@ -183,12 +177,9 @@ test:contentgen:
- cd ${BUILD_DIR}
- pwd
- make contentgen
tags:
- review-apps-4
dependencies:
- deploy:review
only:
- branches
<<: *ra_tags_branches
when: manual

report:statusreportval:
Expand All @@ -202,12 +193,9 @@ report:statusreportval:
- cd ${BUILD_DIR}
- pwd
- make statusreportval
tags:
- review-apps-4
dependencies:
- deploy:review
only:
- branches
<<: *ra_tags_branches

report:watchdog:
stage: reports
Expand All @@ -220,9 +208,6 @@ report:watchdog:
- cd ${BUILD_DIR}
- pwd
- make watchdogval
tags:
- review-apps-4
dependencies:
- deploy:review
only:
- branches
<<: *ra_tags_branches