Loading .travis.yml +29 −23 Changes for .travis.yml: 29 added lines, 23 removed lines. Original line number Diff line number Diff line Loading @@ -20,23 +20,26 @@ jobs: - php: 7.2 env: - DRUPAL_CORE=8.9.x - RULES=NO - php: 7.4 # Skip Rules because it cannot be installed at 8.x. # ---- Remaining self deprecation notices (0) - php: 7.3 env: - DRUPAL_CORE=9.1.x # --- Remaining self deprecation notices (180) # 141 EventDispatcher (in Rules module) # 27 Drupal\Core\Plugin\ContextAwarePluginBase (in Rules module) # 12 StatementWrapper::fetchColumn # --- Remaining self deprecation notices (6) # 6 StatementWrapper::fetchColumn (Rules) # --- Remaining direct deprecation notices (0) - DEPRECATIONS=180 - RULES=YES - DEPRECATIONS=6 - php: 7.4 env: # Have a second 9.1 run which excludes the Rules tests. - DRUPAL_CORE=9.1.x # --- Remaining self deprecation notices (0) - DRUPAL_CORE=9.2.x # Skip Rules testing in this run. # --- Remaining self deprecation notices () # 69 UiHelperTrait::drupalPostForm() # 36 Use QueryInterface::accessCheck() with TRUE or FALSE # 1 BrowserTestBase::drupalGetHeader() # --- Remaining direct deprecation notices (0) - RULES=NO - DEPRECATIONS=115 # Be sure to cache composer downloads. cache: Loading @@ -45,13 +48,8 @@ cache: before_script: # At job start-up Composer is installed at 1.8.4 then self-update is run. From # 24 October 2020 this bumped the version to Composer 2. Drupal Core 8.8 has # plugins that only run with composer-plugin-api ^1.0 so revert to Composer 1. - if [ "$DRUPAL_CORE" == "8.8.x" ]; then travis_retry composer self-update --1; fi # 24 October 2020 this bumped the version to Composer 2. - composer --version - echo $MODULE # Remove Xdebug as we don't need it and it causes Loading Loading @@ -81,8 +79,10 @@ before_script: # Get the latest dev versions of the test dependency modules. - travis_retry git clone --branch 4.x --depth 1 https://git.drupalcode.org/project/devel.git modules/devel - travis_retry git clone --branch 8.x-1.x --depth 1 https://git.drupalcode.org/project/workbench_moderation.git modules/workbench_moderation - travis_retry git clone --branch 8.x-1.x --depth 1 https://git.drupalcode.org/project/workbench_moderation_actions.git modules/workbench_moderation_actions - | if [ "$RULES" != "NO" ]; then if [ "$RULES" == "YES" ]; then echo "Installing Rules and Typed Data ..." travis_retry git clone --branch 8.x-3.x --depth 1 https://git.drupalcode.org/project/rules.git modules/rules travis_retry git clone --branch 8.x-1.x --depth 1 https://git.drupalcode.org/project/typed_data.git modules/typed_data Loading @@ -96,8 +96,12 @@ before_script: - COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require drush/drush:"^9.0 || ^10.0" # Coder is already installed as part of composer install. We just need to set # the installed_paths to pick up the Drupal standards. - $DRUPAL_ROOT/vendor/bin/phpcs --config-set installed_paths $DRUPAL_ROOT/vendor/drupal/coder/coder_sniffer # 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 & Loading @@ -112,16 +116,18 @@ before_script: script: # Run the PHPUnit tests. - cd $DRUPAL_ROOT - if [ "$RULES" == "NO" ]; then ./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/ --filter '/^((?!rules).)*$/i'; else - if [ "$RULES" == "YES" ]; then ./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/; else ./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/ --filter '/^((?!rules).)*$/i'; fi # Check for coding standards. First show the versions. - 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 Loading Loading
.travis.yml +29 −23 Changes for .travis.yml: 29 added lines, 23 removed lines. Original line number Diff line number Diff line Loading @@ -20,23 +20,26 @@ jobs: - php: 7.2 env: - DRUPAL_CORE=8.9.x - RULES=NO - php: 7.4 # Skip Rules because it cannot be installed at 8.x. # ---- Remaining self deprecation notices (0) - php: 7.3 env: - DRUPAL_CORE=9.1.x # --- Remaining self deprecation notices (180) # 141 EventDispatcher (in Rules module) # 27 Drupal\Core\Plugin\ContextAwarePluginBase (in Rules module) # 12 StatementWrapper::fetchColumn # --- Remaining self deprecation notices (6) # 6 StatementWrapper::fetchColumn (Rules) # --- Remaining direct deprecation notices (0) - DEPRECATIONS=180 - RULES=YES - DEPRECATIONS=6 - php: 7.4 env: # Have a second 9.1 run which excludes the Rules tests. - DRUPAL_CORE=9.1.x # --- Remaining self deprecation notices (0) - DRUPAL_CORE=9.2.x # Skip Rules testing in this run. # --- Remaining self deprecation notices () # 69 UiHelperTrait::drupalPostForm() # 36 Use QueryInterface::accessCheck() with TRUE or FALSE # 1 BrowserTestBase::drupalGetHeader() # --- Remaining direct deprecation notices (0) - RULES=NO - DEPRECATIONS=115 # Be sure to cache composer downloads. cache: Loading @@ -45,13 +48,8 @@ cache: before_script: # At job start-up Composer is installed at 1.8.4 then self-update is run. From # 24 October 2020 this bumped the version to Composer 2. Drupal Core 8.8 has # plugins that only run with composer-plugin-api ^1.0 so revert to Composer 1. - if [ "$DRUPAL_CORE" == "8.8.x" ]; then travis_retry composer self-update --1; fi # 24 October 2020 this bumped the version to Composer 2. - composer --version - echo $MODULE # Remove Xdebug as we don't need it and it causes Loading Loading @@ -81,8 +79,10 @@ before_script: # Get the latest dev versions of the test dependency modules. - travis_retry git clone --branch 4.x --depth 1 https://git.drupalcode.org/project/devel.git modules/devel - travis_retry git clone --branch 8.x-1.x --depth 1 https://git.drupalcode.org/project/workbench_moderation.git modules/workbench_moderation - travis_retry git clone --branch 8.x-1.x --depth 1 https://git.drupalcode.org/project/workbench_moderation_actions.git modules/workbench_moderation_actions - | if [ "$RULES" != "NO" ]; then if [ "$RULES" == "YES" ]; then echo "Installing Rules and Typed Data ..." travis_retry git clone --branch 8.x-3.x --depth 1 https://git.drupalcode.org/project/rules.git modules/rules travis_retry git clone --branch 8.x-1.x --depth 1 https://git.drupalcode.org/project/typed_data.git modules/typed_data Loading @@ -96,8 +96,12 @@ before_script: - COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require drush/drush:"^9.0 || ^10.0" # Coder is already installed as part of composer install. We just need to set # the installed_paths to pick up the Drupal standards. - $DRUPAL_ROOT/vendor/bin/phpcs --config-set installed_paths $DRUPAL_ROOT/vendor/drupal/coder/coder_sniffer # 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 & Loading @@ -112,16 +116,18 @@ before_script: script: # Run the PHPUnit tests. - cd $DRUPAL_ROOT - if [ "$RULES" == "NO" ]; then ./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/ --filter '/^((?!rules).)*$/i'; else - if [ "$RULES" == "YES" ]; then ./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/; else ./vendor/bin/phpunit -c ./core/phpunit.xml.dist --debug ./modules/$MODULE/ --filter '/^((?!rules).)*$/i'; fi # Check for coding standards. First show the versions. - 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 Loading