Skip to content
Snippets Groups Projects
Commit 18d435e3 authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Issue #2712465 by jonathan1055: Remove .travis.yml. Spell check hidden files with --dot

parent 13b35a8f
No related branches found
No related tags found
No related merge requests found
Pipeline #392831 failed
...@@ -6,6 +6,10 @@ csslint ...@@ -6,6 +6,10 @@ csslint
interdif interdif
nomsg nomsg
backported backported
oneline
mkdocs
testgroup
phpenv
# Scheduler words # Scheduler words
timecheck timecheck
......
...@@ -23,10 +23,11 @@ variables: ...@@ -23,10 +23,11 @@ variables:
OPT_IN_TEST_NEXT_MAJOR: 1 OPT_IN_TEST_NEXT_MAJOR: 1
OPT_IN_TEST_DRUPAL9: 1 OPT_IN_TEST_DRUPAL9: 1
OPT_IN_TEST_DRUPAL8: 1 OPT_IN_TEST_DRUPAL8: 1
RUN_JOB_UPGRADE_STATUS: 1
_SHOW_ENVIRONMENT_VARIABLES: 1 _SHOW_ENVIRONMENT_VARIABLES: 1
_PHPUNIT_CONCURRENT: 1 _PHPUNIT_CONCURRENT: 1
_PHPUNIT_TESTGROUPS: '' _PHPUNIT_TESTGROUPS: ''
_CSPELL_EXTRA: '--dot'
################ ################
# Job overrides # Job overrides
......
language: php
os: linux
dist: xenial
services:
- mysql
env:
global:
# Make the script re-usable for other modules.
- MODULE=scheduler
# Initialize the real SYMFONY_DEPRECATIONS_HELPER variable.
- SYMFONY_DEPRECATIONS_HELPER=0
# Create a default for the allowed deprecations per branch.
- DEPRECATIONS=0
jobs:
fast_finish: true
include:
- php: 7.2
env:
- DRUPAL_CORE=8.9.x
# Skip Rules because it cannot be installed at 8.x.
- RULES=NO
# ---- Remaining self deprecation notices (0)
- php: 7.3
env:
- DRUPAL_CORE=9.1.x
- RULES=YES
# --- Remaining self deprecation notices (0)
# --- Remaining direct deprecation notices (0)
- php: 7.4
env:
- DRUPAL_CORE=9.5.x
# Skip Rules testing in this run.
- RULES=NO
# --- Remaining self deprecation notices (0)
# --- Remaining direct deprecation notices (0)
- php: 8.1
env:
- DRUPAL_CORE=10.0.x
- RULES=YES
# ---- Remaining self deprecation notices (4)
# 2 Behat\Mink\Element\ElementInterface::getText() might add "string"
# 2 Behat\Mink\Element\ElementInterface::waitFor() might add "mixed"
# ---- Remaining direct deprecation notices (3)
# 1 PHPUnit\TextUI\DefaultResultPrinter class is considered internal
# 1 DrupalListener implements "PHPUnit\Framework\TestListener
# 1 DrupalListener uses "PHPUnit\Framework\TestListenerDefaultImplementation"
# ---- Other deprecation notices (1)
# 1 PHPUnit\Framework\TestCase::addWarning() method is considered internal
- DEPRECATIONS=8
# Be sure to cache composer downloads.
cache:
directories:
- $HOME/.composer
before_script:
# At job start-up Composer is installed. For some earlier versions of PHP this
# will be Composer 1 therefore we need to self-update to Composer 2.
- composer --version
- composer self-update --2
- echo $MODULE
# Remove Xdebug as we don't need it and it causes
# PHP Fatal error: Maximum function nesting level of '256' reached.
# We also don't care if that file exists or not on PHP 7.
- phpenv config-rm xdebug.ini || true
# Navigate out of module directory to prevent blown stack by recursive module
# lookup.
- cd ..
# Create database.
- mysql -e "create database $MODULE"
# Export database variable for kernel tests.
- export SIMPLETEST_DB=mysql://root:@127.0.0.1/$MODULE
# Download Drupal core from the Github mirror because it is faster.
- travis_retry git clone --branch $DRUPAL_CORE --depth 1 https://github.com/drupal/drupal.git
- cd drupal
# Store the path to Drupal root.
- DRUPAL_ROOT=$(pwd)
- echo $DRUPAL_ROOT
# Make a directory for our module and copy the built source into it.
- mkdir $DRUPAL_ROOT/modules/$MODULE
- cp -R $TRAVIS_BUILD_DIR/* $DRUPAL_ROOT/modules/$MODULE/
# Install Composer and allow composer plugins.
- travis_retry composer install
- |
if [[ $DRUPAL_CORE =~ ^(8|9\.0|9\.1) ]]; then
composer config --no-plugins allow-plugins.composer/installers true
composer config --no-plugins allow-plugins.drupal/core-project-message true
composer config --no-plugins allow-plugins.drupal/core-vendor-hardening true
fi
# Install the testing dependencies via Composer.
- travis_retry composer require drupal/devel
- travis_retry composer require drush/drush
- # Need to get Rules dev because 3.0.0-alpha7 has deprecation warnings.
- if [ "$RULES" == "YES" ]; then travis_retry composer require drupal/rules:"3.x-dev"; fi
# Use * to allow any compatible version, not the latest version.
- travis_retry composer require drupal/workbench_moderation:*
# Use * because only the dev version of WBMA is compatible with D9. None for D10.
- if [[ $DRUPAL_CORE =~ ^(8|9) ]]; then travis_retry composer require drupal/workbench_moderation_actions:*; fi
# Coder is already installed as part of composer install. We just need to set
# the installed_paths to pick up the Drupal standards. This is only for Coder
# up to version 8.3.13. From 8.3.14 onwards this is done at install time.
- |
if [[ "$DRUPAL_CORE" == "8.9.x" || "$DRUPAL_CORE" == "9.2.x" || "$DRUPAL_CORE" == "9.3.x" ]]; then
$DRUPAL_ROOT/vendor/bin/phpcs --config-set installed_paths $DRUPAL_ROOT/vendor/drupal/coder/coder_sniffer
fi
# Start a web server on port 8888, run in the background.
- php -S localhost:8888 &
# Export web server URL for browser tests.
- export SIMPLETEST_BASE_URL=http://localhost:8888
# Get the allowed number of deprecation warnings.
- SYMFONY_DEPRECATIONS_HELPER=$DEPRECATIONS || $SYMFONY_DEPRECATIONS_HELPER
- echo $SYMFONY_DEPRECATIONS_HELPER
script:
# Run the PHPUnit tests, excluding the javascript tests.
- cd $DRUPAL_ROOT
- if [ "$RULES" == "YES" ]; then
./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/ --exclude-group=scheduler_js;
else
./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/ --exclude-group=scheduler_js --filter '/^(?!.*(rules)).*/i';
fi
# Check for coding standards. First show the versions.
- composer config --no-plugins allow-plugins.composer/installers true
- composer config --no-plugins allow-plugins.drupal/core-project-message true
- composer config --no-plugins allow-plugins.drupal/core-vendor-hardening true
- composer show drupal/coder | egrep 'name |vers'
- composer show squizlabs/php_codesniffer | egrep 'name |vers'
- $DRUPAL_ROOT/vendor/bin/phpcs --version
- $DRUPAL_ROOT/vendor/bin/phpcs --config-show installed_paths
# Change into $MODULE directory to avoid having to add --standard=$DRUPAL_ROOT/modules/$MODULE/phpcs.xml.dist
- cd $DRUPAL_ROOT/modules/$MODULE
# List the standards and the sniffs that are used.
- $DRUPAL_ROOT/vendor/bin/phpcs -i
- $DRUPAL_ROOT/vendor/bin/phpcs -e
# Show the violations in detail, plus summary and source report.
- $DRUPAL_ROOT/vendor/bin/phpcs . --report-full --report-summary --report-source -s
# cspell:ignore q0rban tugboatqa updatedb
services: services:
php: php:
image: q0rban/tugboat-drupal:10 image: q0rban/tugboat-drupal:10
...@@ -24,7 +25,7 @@ services: ...@@ -24,7 +25,7 @@ services:
# Composer package repository. # Composer package repository.
composer config repositories.tugboat vcs $TUGBOAT_ROOT composer config repositories.tugboat vcs $TUGBOAT_ROOT
# Now we can require this module, specifing the branch name we created # Now we can require this module, specifying the branch name we created
# above that uses the $TUGBOAT_REPO_ID environment variable. # above that uses the $TUGBOAT_REPO_ID environment variable.
composer require drupal/scheduler:dev-$TUGBOAT_REPO_ID composer require drupal/scheduler:dev-$TUGBOAT_REPO_ID
...@@ -110,7 +111,7 @@ services: ...@@ -110,7 +111,7 @@ services:
# Update this module, including all dependencies. # Update this module, including all dependencies.
composer update drupal/scheduler --with-all-dependencies composer update drupal/scheduler --with-all-dependencies
vendor/bin/drush --yes updb vendor/bin/drush --yes updatedb
vendor/bin/drush cache:rebuild vendor/bin/drush cache:rebuild
mysql: mysql:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment