Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Commits
0fc791b4
Commit
0fc791b4
authored
1 week ago
by
Andrey Postnikov
Browse files
Options
Downloads
Patches
Plain Diff
revert last 2 commits as other composer command are using root
parent
2117fed9
No related branches found
No related tags found
1 merge request
!6859
PHPUnit 11 #3418267
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci.yml
.gitlab-ci/pipeline.yml
+2
-0
2 additions, 0 deletions
.gitlab-ci/pipeline.yml
core/scripts/run-tests.sh
+4
-2
4 additions, 2 deletions
core/scripts/run-tests.sh
with
8 additions
and
2 deletions
.gitlab-ci.yml
+
2
−
0
View file @
0fc791b4
...
...
@@ -109,6 +109,7 @@ default:
before_script
:
-
composer validate
-
composer install --optimize-autoloader
-
composer run-script drupal-phpunit-upgrade-check
-
mkdir -p ./sites/simpletest ./sites/default/files ./build/logs/junit /var/www/.composer
-
chown -R www-data:www-data ./sites ./build/logs/junit ./vendor /var/www/
script
:
...
...
@@ -444,6 +445,7 @@ default:
script
:
-
composer validate
-
composer install --optimize-autoloader
-
composer run-script drupal-phpunit-upgrade-check
-
if [ -n "$COMPOSER_UPDATE" ]; then
composer update --optimize-autoloader;
composer outdated;
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci/pipeline.yml
+
2
−
0
View file @
0fc791b4
...
...
@@ -101,6 +101,7 @@ variables:
.run-tests
:
&run-tests
script
:
-
sudo -u www-data -E -H composer run-script drupal-phpunit-upgrade-check
# Need to pass this along directly.
-
sudo -u www-data -E -H php ./core/scripts/run-tests.sh --color --keep-results --types "$TESTSUITE" --concurrency "$CONCURRENCY" --repeat "1" --sqlite "./sites/default/files/tests.sqlite" --dburl $SIMPLETEST_DB --url $SIMPLETEST_BASE_URL --verbose --non-html --all --ci-parallel-node-index $CI_PARALLEL_NODE_INDEX --ci-parallel-node-total $CI_PARALLEL_NODE_TOTAL
...
...
@@ -230,6 +231,7 @@ variables:
-
<<
:
*with-database
-
<<
:
*with-chrome
script
:
-
sudo -u www-data -E -H composer run-script drupal-phpunit-upgrade-check
# Run a small subset of tests to prove non W3C testing still works.
-
sudo -u www-data -E -H php ./core/scripts/run-tests.sh --color --keep-results --types "$TESTSUITE" --concurrency "$CONCURRENCY" --repeat "1" --sqlite "./sites/default/files/tests.sqlite" --dburl $SIMPLETEST_DB --url $SIMPLETEST_BASE_URL --verbose --non-html javascript
...
...
This diff is collapsed.
Click to expand it.
core/scripts/run-tests.sh
+
4
−
2
View file @
0fc791b4
...
...
@@ -514,8 +514,10 @@ function simpletest_script_init(): void {
// Detect if we'
re
in
the top-level process using the private
'execute-test'
// argument. Determine
if
being run on drupal.org
's testing infrastructure
// using the presence of '
GITLAB_CI
' environment variable.
if (!$args['
execute-test
'] && getenv('
GITLAB_CI
') === '
true
') {
// using the presence of '
drupalci
' in the sqlite argument.
// @todo https://www.drupal.org/project/drupalci_testbot/issues/2860941 Use
// better environment variable to detect DrupalCI.
if (!$args['
execute-test
'] && preg_match('
/drupalci/
', $args['
sqlite
'] ?? '')) {
// Update PHPUnit if needed and possible. There is a later check once the
// autoloader is in place to ensure we'
re on the correct version. We need to
//
do
this before the autoloader is
in
place to ensure that it is correct.
...
...
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