Skip to content

Commit

Permalink
Merge branch 'pipeline-on-merge' into 'master'
Browse files Browse the repository at this point in the history
pipeline on merge

See merge request really-simple-plugins/complianz/complianz-gdpr!390
  • Loading branch information
Mark W committed Mar 15, 2023
2 parents 7080230 + edcb13f commit c4adf5b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ test:php7.4:
image: php:7.4
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clove --colors=never
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'

# We test PHP7.4 with multisite
test:php7.4:multisite:
Expand All @@ -84,12 +86,16 @@ test:php7.4:multisite:
image: php:7.4
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clove --colors=never
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'

# We test PHP8
test:php8.0:
image: php:8.0
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover --colors=never
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'

# We test PHP8 with multisite
test:php8.0:multisite:
Expand All @@ -98,17 +104,23 @@ test:php8.0:multisite:
image: php:8.0
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clove --colors=never
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'

# We test PHP8.1
test:php8.1:
image: php:8.1
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover --colors=never
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'

# We test PHP8.1 with multisite
test:php8.1:multisite:
variables:
WP_MULTISITE: "1"
image: php:8.1
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clove --colors=never
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clove --colors=never
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'

0 comments on commit c4adf5b

Please sign in to comment.