Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
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
automatic_updates
Merge requests
!15
Issue
#3228806
: Exclude security hardened site/default
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3228806
: Exclude security hardened site/default
issue/automatic_updates-3228806:3228806-exclude-protected
into
8.x-2.x
Overview
0
Commits
24
Pipelines
0
Changes
1
Merged
Ted Bowman
requested to merge
issue/automatic_updates-3228806:3228806-exclude-protected
into
8.x-2.x
3 years ago
Overview
0
Commits
24
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
9f836420
Prev
Next
Show latest version
1 file
+
0
−
57
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
9f836420
drupalci on buildtests
· 9f836420
Ted Bowman
authored
3 years ago
drupalci.yml
+
0
−
57
Options
@@ -6,50 +6,6 @@ build:
# validate_codebase:
# automatic_updates code quality checking matches that of Drupal core: it is checked by container_command.commit_checks.
testing
:
# Run code quality checks.
container_command.commit-checks
:
commands
:
# Copy core's checking script into this contrib module.
-
"
cp
/var/www/html/core/scripts/dev/commit-code-check.sh
modules/contrib/automatic_updates/"
# Comply with core's checking script file permissions expectations.
-
chmod 644 modules/contrib/automatic_updates/
# Rewrite $TOP_LEVEL/core since $TOP_LEVEL now refers to the contrib module.
-
sed -i "s/\$TOP_LEVEL\/core/\/var\/www\/html\/core/" modules/contrib/automatic_updates/commit-code-check.sh
# Ensure the remainder of the script runs from the script's directory and not the current working directory.
-
sed -i "s/# Gets list of files to check./cd \"\$\(dirname \"\$0\"\)\";/" modules/contrib/automatic_updates/commit-code-check.sh
# When constructing $FILES, ignore the `commit-code-check.sh` file we just copied.
-
sed -i "s/--exclude=vendor/--exclude=vendor --exclude=commit-code-check.sh/" modules/contrib/automatic_updates/commit-code-check.sh
# vendor/bin/phpcs now needs to be prefixed. And $TOP_LEVEL/vendor needs to be rewritten.
-
sed -i "s/vendor\/bin\/phpcs/\/var\/www\/html\/vendor\/bin\/phpcs/" modules/contrib/automatic_updates/commit-code-check.sh
-
sed -i "s/\$TOP_LEVEL\/vendor/\/var\/www\/html\/vendor/" modules/contrib/automatic_updates/commit-code-check.sh
# Disable all JS compile checks until we've matched core's build process.
# @todo Remove this in https://www.drupal.org/project/automatic_updates/issues/3221082.
-
sed -i "s/COMPILE_CHECK=1/COMPILE_CHECK=0/" modules/contrib/automatic_updates/commit-code-check.sh
-
sed -i "s/core\/scripts\/js/js/" modules/contrib/automatic_updates/commit-code-check.sh
# Uncomment to Check all files
#- sed -i "s/git diff --name-only HEAD~1 HEAD/find \* -type f -not -path \"\.\/\.git\*\"/" modules/contrib/automatic_updates/commit-code-check.sh
# Add our words to the dictionary
-
sed -i "s/abiword/updater's/" core/misc/cspell/dictionary.txt
-
sed -i "s/absolutezero/stager's/" core/misc/cspell/dictionary.txt
# After all of the shenanigans above, we're finally ready to run core's `commit-code-check.sh`! :)
-
"
modules/contrib/automatic_updates/commit-code-check.sh
--drupalci"
# Restore the original permissions.
-
chmod 777 modules/contrib/automatic_updates/
halt-on-fail
:
true
# run_tests task is executed several times in order of performance speeds.
# halt-on-fail can be set on the run_tests tasks in order to fail fast.
# suppress-deprecations is false in order to be alerted to usages of
# deprecated code.
run_tests.phpunit
:
types
:
'
PHPUnit-Unit'
testgroups
:
'
--all'
suppress-deprecations
:
false
halt-on-fail
:
false
run_tests.kernel
:
types
:
'
PHPUnit-Kernel'
testgroups
:
'
--all'
suppress-deprecations
:
false
halt-on-fail
:
false
run_tests.build
:
# Limit concurrency due to disk space concerns.
concurrency
:
15
@@ -57,16 +13,3 @@ build:
testgroups
:
'
--all'
suppress-deprecations
:
false
halt-on-fail
:
false
run_tests.functional
:
types
:
'
PHPUnit-Functional'
testgroups
:
'
--all'
suppress-deprecations
:
false
halt-on-fail
:
false
# Functional JavaScript tests require a concurrency of 1 because there is
# only one instance of PhantomJS on the testbot machine.
#run_tests.javascript:
# concurrency: 1
# types: 'PHPUnit-FunctionalJavascript'
# testgroups: '--all'
# suppress-deprecations: false
# halt-on-fail: false
Loading