Skip to content
Snippets Groups Projects
Commit 928c797c authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Implement $BEFORE_SCRIPT_ACTIONS=phpcs-duplicate-files

parent 8936397f
No related branches found
No related tags found
Loading
Pipeline #433714 failed
...@@ -48,3 +48,11 @@ phpcs: ...@@ -48,3 +48,11 @@ phpcs:
# @todo remove when https://www.drupal.org/project/gitlab_templates/issues/3380694 is merged. # @todo remove when https://www.drupal.org/project/gitlab_templates/issues/3380694 is merged.
cp -v phpcs.xml $CI_PROJECT_DIR cp -v phpcs.xml $CI_PROJECT_DIR
fi fi
- |
if [[ $BEFORE_SCRIPT_ACTIONS =~ "phpcs-duplicate-files" ]]; then
echo "Executing phpcs-duplicate-files"
cp -v .gitlab/phpcs-ok.xml .phpcs.xml
cp -v .gitlab/phpcs-ok.xml .phpcs.xml.dist
cp -v .gitlab/phpcs-ok.xml phpcs.xml.dist
cp -v .gitlab/phpcs-ok.xml phpcs.xml.old
fi
This is the d7-composer branch.
This file has been added so that changes to it can be used to trigger a pipeline. This file has been added so that changes to it can be used to trigger a pipeline.
It can contain anything, and there is no need to cherry-pick any changes to the other branches. It can contain anything, and there is no need to cherry-pick any changes to the other branches.
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ruleset name="gtd-d7-composer"> <ruleset name="gitlab-templates-downstream-fail">
<description>This file is inactive by default, but can be renamed in a before_script to test downstream failures</description> <description>This file is inactive by default, but can be renamed in a before_script to test downstream failures</description>
<!-- Include all rules in the Drupal ruleset. --> <!-- Include all rules in the Drupal ruleset. -->
......
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="gitlab-templates-downstream-ok">
<description>This file is inactive by default, but can be renamed in a before_script to test downstream failures</description>
<!-- Include all rules in the Drupal ruleset. -->
<rule ref="Drupal"/>
<!-- Include all rules in the DrupalPractice ruleset. -->
<rule ref="vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml"/>
<arg name="extensions" value="php,inc,module,install,info,test,profile,theme"/>
</ruleset>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment