Skip to content
Snippets Groups Projects

Use variables to decide whether to fail linting jobs

All threads resolved!
Files
3
@@ -385,6 +385,10 @@ phpcs:
needs: ['composer']
rules:
- *skip-phpcs-rule
- if: $_PHPCS_ALLOW_FAILURE == "1" || ($_ALL_VALIDATE_ALLOW_FAILURE == "1" && $_PHPCS_ALLOW_FAILURE != "0")
allow_failure: true
- if: $_PHPCS_ALLOW_FAILURE == "0" || $_ALL_VALIDATE_ALLOW_FAILURE == "0"
allow_failure: false
- when: on_success
script:
- test -f phpcs.xml.dist || curl -OL https://git.drupalcode.org/$_CURL_TEMPLATES_REPO/-/raw/$_CURL_TEMPLATES_REF/assets/phpcs.xml.dist
Loading