Issue #3519033 Fix PHP version compatibility.
Closes #3519033 Opt in to test previous version of Drupal and PHP
Merge request reports
Activity
added 1 commit
- ca9e040b - Update test and files to make PHP 7.4 compatible.
added 2 commits
added 1 commit
- 4d0a9294 - Allow merging phpcs failures in order to maintain backwards compatibility.
added 5 commits
-
254814c9...b8bab43e - 4 commits from branch
project:4.x
- 6a572b45 - Merge branch '4.x' into '3519033-php-version-compatibility'
-
254814c9...b8bab43e - 4 commits from branch
added 6 commits
-
6a572b45...afe2c926 - 5 commits from branch
project:4.x
- 1345a814 - Merge branch environment_indicator:4.x into 3519033-php-version-compatibility
-
6a572b45...afe2c926 - 5 commits from branch
added 1 commit
- 04f1edfe - Update PHPUnit tests for Drupal 11.0 compatibility.
added 3 commits
-
e5d1829f...2c31ecbd - 2 commits from branch
project:4.x
- f9edaac8 - Merge branch environment_indicator:4.x into 3519033-php-version-compatibility
-
e5d1829f...2c31ecbd - 2 commits from branch
added 2 commits
added 2 commits
Tested and working with this lando file
php: '7.3'
drupal/core-dev:^9.3
name: environment_indicator recipe: drupal9 config: php: '7.3' via: apache:2.4 webroot: web database: mariadb:10.4 xdebug: false services: database: type: compose services: image: mariadb:10.4 command: docker-entrypoint.sh mariadbd restart: always ports: - '3306' environment: MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'true' MARIADB_DATABASE: drupal9 MYSQL_DATABASE: drupal9 MARIADB_USER: drupal9 MARIADB_PASSWORD: drupal9 appserver: overrides: environment: SIMPLETEST_DB: 'mysql://drupal9:drupal9@database/drupal9' SIMPLETEST_BASE_URL: 'http://appserver' MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName":"chrome","chromeOptions":{"args":["--disable-gpu","--disable-dev-shm-usage","--headless","--no-sandbox"]}}, "http://chromedriver:9515"]' XDEBUG_MODE: debug volumes: # Don't share our host working directory as /app. We want /app empty for composer. - /app # Instead share our host working directory as a standalone package. - .:/usr/local/environment_indicator build: # Create a new Drupal project and use the module as a non-packagist repository. - composer create-project --dev drupal/recommended-project:9.3.x /app - composer config extra.enable-patching true - composer config extra.composer-exit-on-patch-failure true - composer config allow-plugins.cweagans/composer-patches true - composer require cweagans/composer-patches - composer config minimum-stability dev - composer config allow-plugins.phpstan/extension-installer true - composer require --dev drupal/core-dev:^9.3 drush/drush phpspec/prophecy-phpunit:* phpstan/extension-installer mglaman/phpstan-drupal phpstan/phpstan-deprecation-rules drupal/config_inspector drupal/devel drupal/gin - composer config repositories.localdev path /usr/local/environment_indicator && composer require drupal/environment_indicator:\*@dev node: type: node:20 build: - yarn install chromedriver: type: compose services: image: seleniarm/standalone-chromium:4.1.4-20220429 command: /opt/bin/entry_point.sh tooling: # Provide a command to install Drupal. install: service: appserver cmd: - /app/vendor/bin/drush --root=/app/web site:install --account-mail=noreply@example.com --account-name=admin --account-pass=admin --db-url=mysql://drupal9:drupal9@database:3306/drupal9 -y --verbose - /app/vendor/bin/drush --root=/app/web en -y environment_indicator environment_indicator_ui - /app/vendor/bin/drush --root=/app/web theme:enable -y gin - /app/vendor/bin/drush --root=/app/web config:set -y system.theme admin gin - /app/vendor/bin/drush --root=/app/web en -y gin_toolbar #Create login link - /app/vendor/bin/drush uli -l https://environmentindicator.lndo.site # Provide Drush tooling to automatically know the Drupal root. drush: service: appserver cmd: /app/vendor/bin/drush --root=/app/web phpcs: service: appserver cmd: /app/vendor/bin/phpcs -s --colors --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/environment_indicator # Provide PHPCBF tooling to fix coding standards. phpcbf: service: appserver cmd: /app/vendor/bin/phpcbf -s --colors --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/environment_indicator # Provide phpstan tooling to check for code quality and deprecated code. phpstan: service: appserver cmd: /app/vendor/bin/phpstan analyse --configuration web/modules/contrib/environment_indicator/phpstan.neon web/modules/contrib/environment_indicator # Provide phpunit tooling to run unit tests. phpunit: service: appserver cmd: /app/vendor/bin/phpunit --configuration /app/web/core/phpunit.xml.dist --bootstrap /app/web/core/tests/bootstrap.php /app/web/modules/contrib/environment_indicator yarn: service: node cmd: yarn eslint: service: node cmd: yarn run eslint --color
Please register or sign in to reply