Skip to content
Snippets Groups Projects

Add support for lenient plugin and composer patches

Merged Jürgen Haas requested to merge issue/gitlab_templates-3412308:1.0.x into 1.0.x
3 files
+ 66
6
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -42,6 +42,14 @@
echo -e "\e[0Ksection_end:`date +%s`:show_env_vars\r\e[0K"
fi
.add-composer-drupal-lenient: &add-composer-drupal-lenient
# Separately install and configure lenient plugin, if required.
- |
if [ "$LENIENT_ALLOW_LIST" != "0" ]; then
composer global config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
composer global require mglaman/composer-drupal-lenient
fi
.simpletest-db: &simpletest-db
- |
[[ $_TARGET_DB_TYPE == "sqlite" ]] && export SIMPLETEST_DB=sqlite://localhost/sites/default/files/db.sqlite
@@ -164,6 +172,7 @@ stages:
- .
script:
- *show-environment-variables
- *add-composer-drupal-lenient
# Expand the composer.json from the module with defaults to bring the Drupal project.
- curl -OL https://git.drupalcode.org/$_GITLAB_TEMPLATES_REPO/-/raw/$_GITLAB_TEMPLATES_REF/scripts/expand_composer_json.php
- php expand_composer_json.php
@@ -497,7+506,7 @@
- *simpletest-db
# Provide some context on the test run.
- vendor/bin/drush status
+2
# Remove all spaces from _PHPUNIT_TESTGROUPS for reliable checking and to
# ensure only one string is passed to bin/phpunit or run-tests.sh
- _PHPUNIT_TESTGROUPS=$(echo $_PHPUNIT_TESTGROUPS | sed -e 's/ //g')
# Execute tests.
Loading