Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab_templates_downstream
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
gitlab_templates_downstream
Commits
928c797c
Commit
928c797c
authored
3 months ago
by
Jonathan Smith
Browse files
Options
Downloads
Patches
Plain Diff
Implement $BEFORE_SCRIPT_ACTIONS=phpcs-duplicate-files
parent
8936397f
No related branches found
No related tags found
Loading
Pipeline
#433714
failed
3 months ago
Stage: build
Stage: validate
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+8
-0
8 additions, 0 deletions
.gitlab-ci.yml
.gitlab/anything.txt
+2
-0
2 additions, 0 deletions
.gitlab/anything.txt
.gitlab/phpcs-fail.xml
+1
-1
1 addition, 1 deletion
.gitlab/phpcs-fail.xml
.gitlab/phpcs-ok.xml
+13
-0
13 additions, 0 deletions
.gitlab/phpcs-ok.xml
with
24 additions
and
1 deletion
.gitlab-ci.yml
+
8
−
0
View file @
928c797c
...
@@ -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 diff is collapsed.
Click to expand it.
.gitlab/anything.txt
+
2
−
0
View file @
928c797c
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.
This diff is collapsed.
Click to expand it.
.gitlab/phpcs-fail.xml
+
1
−
1
View file @
928c797c
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<ruleset
name=
"g
td-d7-composer
"
>
<ruleset
name=
"g
itlab-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. -->
...
...
This diff is collapsed.
Click to expand it.
.gitlab/phpcs-ok.xml
0 → 100644
+
13
−
0
View file @
928c797c
<?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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment