Commit 6b253261 authored by edycarreyes99's avatar edycarreyes99
Browse files

Adding gitlab-ci support to the project

parent 1d96981b
#PHPUnit output
- project: 'drupalspoons/webmasters'
# Best practice is to pin to a tag or a SHA1.
ref: 1.5.0
file: 'templates/.gitlab-ci.yml'
......@@ -21,12 +21,69 @@
"slack": "#migrate",
"source": ""
"minimum-stability": "dev",
"repositories": [
"type": "composer",
"url": ""
"suggest": {
"sainsburys/guzzle-oauth2-plugin": "3.0 required for the OAuth2 authentication plugin",
"ext-soap": "*"
"require": {
"php": ">=7.1"
"require-dev": {
"composer/installers": "^1",
"drupal/core-composer-scaffold": "^8.7 || ^9.0",
"cweagans/composer-patches": "~1.0",
"drupal/core-recommended": "^8.7 || ^9.0",
"drupal/core-dev": "^8.7 || ^9.0",
"drush/drush": "^10",
"mglaman/phpstan-drupal": "^0.12",
"phpstan/phpstan-deprecation-rules": "^0.12",
"php-parallel-lint/php-parallel-lint": "^1.2",
"zaporylie/composer-drupal-optimizations": "^1.0"
"config": {
"preferred-install": "dist",
"process-timeout": 36000
"scripts": {
"si": "drush si -v --db-url=sqlite://sites/default/files/.sqlite testing",
"phpcs": "PWD=$(pwd) && phpcs --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 --ignore=$PWD/web/,$PWD/vendor/",
"phpcbf": "PWD=$(pwd) && phpcbf --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 --ignore=$PWD/web/,$PWD/vendor/",
"lint": "parallel-lint --exclude web --exclude vendor .",
"runserver": "drush runserver",
"chromedriver": "chromedriver --port=9515 --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log --no-sandbox",
"create-symlinks": "cd web/modules/${PWD##*/} && find ../../.. -maxdepth 1 ! -name .git ! -name web ! -name vendor -print | while read file; do ln -s $file .; done",
"unit": "phpunit --list-tests web/modules/${PWD##*/} && phpunit --verbose web/modules/${PWD##*/}",
"phpstan": "phpstan analyse web/modules/${PWD##*/}",
"post-update-cmd": [
"DIR=${PWD##*/} && rm -rf web/modules/$DIR && mkdir -p web/modules/$DIR",
"minimum-stability": "dev",
"extra": {
"drush": {
"services": {
"": "^9 || ^10"
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/{$name}": ["type:drupal-module"],
"web/profiles/{$name}": ["type:drupal-profile"],
"web/themes/{$name}": ["type:drupal-theme"],
"drush/{$name}": ["type:drupal-drush"]
"drupal-scaffold": {
"locations": {
"web-root": "web/"
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Module">
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
<!-- Initially include all Drupal and DrupalPractice sniffs. -->
<rule ref="vendor/drupal/coder/coder_sniffer/Drupal"/>
<rule ref="vendor/drupal/coder/coder_sniffer/DrupalPractice"/>
<!-- Use 's' to print the full sniff name in the report. -->
<!-- A '-' is prefixed to each of these, so s becomes -s, etc. -->
<arg value="s"/>
<arg value="-colors"/>
<arg name='report-width' value='120'/>
<!-- Ignore all files that match these patterns. They are matched against -->
<!-- the full file path and there is an implied wildcard at each end. -->
<!-- Periods must be escaped using \. -->
<!-- The first two are key to isolating just this project's files. -->
customRulesetUsed: true
reportUnmatchedIgnoredErrors: false
- vendor/mglaman/phpstan-drupal/extension.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
<?xml version="1.0" encoding="UTF-8"?>
<!-- TODO set checkForUnintentionallyCoveredCode="true" once is resolved. -->
<!-- PHPUnit expects functional tests to be run with either a privileged user
or your current system user. See core/tests/ and for details.
<phpunit bootstrap="web/core/tests/bootstrap.php" colors="true"
<!-- Set error reporting to E_ALL. -->
<ini name="error_reporting" value="32767"/>
<!-- Do not limit the amount of memory tests take to run. -->
<ini name="memory_limit" value="-1"/>
<!-- Example SIMPLETEST_BASE_URL value: http://localhost -->
<env name="SIMPLETEST_BASE_URL" value=""/>
<!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix -->
<env name="SIMPLETEST_DB" value="sqlite://localhost/sites/default/files/.sqlite"/>
<!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value="/tmp"/>
<!-- To have browsertest output use an alternative base URL. For example if
SIMPLETEST_BASE_URL is an internal DDEV URL, you can set this to the
external DDev URL so you can follow the links directly.
<env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
<!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
<env name="MINK_DRIVER_CLASS" value=''/>
<!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '[""]' -->
<env name="MINK_DRIVER_ARGS" value=''/>
<!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '[""]' -->
<env name="MINK_DRIVER_ARGS_PHANTOMJS" value=''/>
<!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["chrome", { "chromeOptions": { "w3c": false } }, "http://localhost:4444/wd/hub"]' For using the Firefox browser, replace "chrome" with "firefox" -->
<!-- Example from>
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--headless"]}}, "http://chrome:9515"]'/>
<testsuite name="unit">
<testsuite name="kernel">
<testsuite name="functional">
<testsuite name="functional-javascript">
<testsuite name="build">
<listener class="\Drupal\Tests\Listeners\DrupalListener">
<!-- The Symfony deprecation listener has to come after the Drupal listener -->
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
<log type="junit" target="junit.xml"/>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment