Skip to content

Commit

Permalink
Merge pull request #53 from WengerK/feature/drupal-10.2-stable-new
Browse files Browse the repository at this point in the history
use stable Drupal 10.2
  • Loading branch information
WengerK authored Mar 12, 2024
2 parents 06b7db8 + ca00ba2 commit 714cb99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
14 changes: 3 additions & 11 deletions 10/10.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,13 @@ RUN curl -OL https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait
# installed into the vendor directory.
RUN composer config --no-interaction allow-plugins true

# Install Drupal Dev dependencies such as PHPUnit, Behat-Mink, ...
RUN COMPOSER_MEMORY_LIMIT=-1 composer require --dev drupal/core-dev:~${DRUPAL_VERSION}

# Install Drush.
# Drush will be heavily use to setup a working Drupal environment.
RUN COMPOSER_MEMORY_LIMIT=-1 composer require drush/drush:^12.0

# Prepare for Drupal 10.2 upgrade.
# @see https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-to-drupal-9-or-higher
RUN composer require drupal/core-recommended:~${DRUPAL_VER} --update-with-all-dependencies --no-update
RUN composer require drupal/core-dev:~${DRUPAL_VER} --dev --update-with-all-dependencies --no-update

# Set the minimum stability to "dev" to allow installing unstable Drupal Core.
RUN composer config minimum-stability dev

# Perform Drupal 10.1 installation.
RUN COMPOSER_MEMORY_LIMIT=-1 composer update --with-all-dependencies

# Clean repository.
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

Expand Down
4 changes: 2 additions & 2 deletions 10/10.2/tests/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ commandTests:
- name: 'Drupal version'
command: 'drush'
args: ['status']
expectedOutput: ['Drupal version\s+:\s+10\.2\.[\d-alpha\d|\d-beta\d|\d-dev|\d-rc\d|\d*]']
expectedOutput: ['Drupal version\s+:\s+10\.2\.(x|\d+)(-(alpha|beta|dev|rc))?' ]
- name: 'Drupal Core Dev version'
command: bash
args: ['-c', 'composer show drupal/core-dev']
expectedOutput: ['versions\s+:\s\* 10\.2\.[\d-alpha\d|\d-beta\d|\d-dev|\d-rc\d|\d*]']
expectedOutput: ['versions\s+:\s\* 10\.2\.(x|\d+)(-(alpha|beta|dev|rc))?']
- name: 'Drush location'
command: 'drush'
args: ['status']
Expand Down
4 changes: 2 additions & 2 deletions 10/10.3/tests/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ commandTests:
- name: 'Drupal version'
command: 'drush'
args: ['status']
expectedOutput: ['Drupal version\s+:\s+10\.3\.(alpha|beta|dev|rc|\d+)']
expectedOutput: ['Drupal version\s+:\s+10\.3\.(x|\d+)(-(alpha|beta|dev|rc))?']
- name: 'Drupal Core Dev version'
command: bash
args: ['-c', 'composer show drupal/core-dev']
expectedOutput: ['versions\s+:\s\* 10\.3\.(x|0)(-(alpha|beta|dev|rc))?']
expectedOutput: ['versions\s+:\s\* 10\.3\.(x|\d+)(-(alpha|beta|dev|rc))?']
- name: 'Drush location'
command: 'drush'
args: ['status']
Expand Down

0 comments on commit 714cb99

Please sign in to comment.