Skip to content

Commit

Permalink
Updated assemble.sh to use Drupal version for project SHA + PHP 8.4 i…
Browse files Browse the repository at this point in the history
…n CI.
  • Loading branch information
AlexSkrypnyk committed Nov 20, 2024
1 parent 28e79c1 commit 7c6df58
Show file tree
Hide file tree
Showing 10 changed files with 466 additions and 122 deletions.
182 changes: 157 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,56 +99,138 @@ job-test: &job-test
fi
jobs:
test-php-8.2:
test-php-8.2-d10-legacy:
<<: *container_config
docker:
- image: cimg/php:8.2-browsers
environment:
DRUPAL_VERSION: 10.1
DRUPAL_PROJECT_SHA: 10.x
DRUPAL_VERSION: 10.2
<<: *job-test

test-php-8.2-legacy:
test-php-8.2-d10-stable:
<<: *container_config
docker:
- image: cimg/php:8.2-browsers
environment:
DRUPAL_VERSION: 10.1
DRUPAL_PROJECT_SHA: 10.x
DRUPAL_VERSION: 10.3
<<: *job-test

test-php-8.2-next:
test-php-8.2-d10-canary:
<<: *container_config
docker:
- image: cimg/php:8.2-browsers
environment:
DRUPAL_VERSION: 10@beta
DRUPAL_PROJECT_SHA: 10.x
DRUPAL_VERSION: 10.4@beta
CI_PHPSTAN_IGNORE_FAILURE: 1 # PHPStan levels for canary releases are not the same as for this project.
<<: *job-test

test-php-8.3:
test-php-8.3-d10-legacy:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: stable
DRUPAL_PROJECT_SHA: 10.x
DRUPAL_VERSION: 10.2
<<: *job-test

test-php-8.3-next:
test-php-8.3-d10-stable:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 11@alpha
DRUPAL_PROJECT_SHA: 11.x
DRUPAL_VERSION: 10.3
<<: *job-test

test-php-8.3-d10-canary:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 10.4@beta
CI_PHPSTAN_IGNORE_FAILURE: 1 # PHPStan levels for canary releases are not the same as for this project.
<<: *job-test

test-php-8.4-d10-legacy:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers # PHP 8.4 is not available yet.
environment:
DRUPAL_VERSION: 10.3 # Lowest Drupal version that supports PHP 8.4.
<<: *job-test

test-php-8.4-d10-stable:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers # PHP 8.4 is not available yet.
environment:
DRUPAL_VERSION: 10.3
<<: *job-test

test-php-8.4-d10-canary:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers # PHP 8.4 is not available yet.
environment:
DRUPAL_VERSION: 10.4@beta
CI_PHPSTAN_IGNORE_FAILURE: 1 # PHPStan levels for canary releases are not the same as for this project.
<<: *job-test

test-php-8.3-d11-legacy:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 11.0 # Lowest Drupal version that exists.
<<: *job-test

test-php-8.3-d11-stable:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 11.0
<<: *job-test

test-php-8.3-d11-canary:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers
environment:
DRUPAL_VERSION: 11@beta
CI_PHPSTAN_IGNORE_FAILURE: 1 # PHPStan levels for canary releases are not the same as for this project.
<<: *job-test

test-php-8.4-d11-legacy:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers # PHP 8.4 is not available yet.
environment:
DRUPAL_VERSION: 11.0 # Lowest Drupal version that exists.
<<: *job-test

test-php-8.4-d11-stable:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers # PHP 8.4 is not available yet.
environment:
DRUPAL_VERSION: 11.0
<<: *job-test

test-php-8.4-d11-canary:
<<: *container_config
docker:
- image: cimg/php:8.3-browsers # PHP 8.4 is not available yet.
environment:
DRUPAL_VERSION: 11@beta
CI_PHPSTAN_IGNORE_FAILURE: 1 # PHPStan levels for canary releases are not the same as for this project.
<<: *job-test

deploy:
<<: *container_config

environment:
DEPLOY_SSH_KEY_FINGERPRINT: *deploy_ssh_key_fingerprint
DEFAULT_BRANCH: *default_branch

steps:
- checkout

Expand All @@ -164,33 +246,83 @@ workflows:
version: 2
commit:
jobs:
- test-php-8.2:
- test-php-8.2-d10-legacy:
filters:
tags:
only: /.*/
- test-php-8.2-d10-stable:
filters:
tags:
only: /.*/
- test-php-8.2-d10-canary:
filters:
tags:
only: /.*/
- test-php-8.3-d10-legacy:
filters:
tags:
only: /.*/
- test-php-8.3-d10-stable:
filters:
tags:
only: /.*/
- test-php-8.3-d10-canary:
filters:
tags:
only: /.*/
- test-php-8.4-d10-legacy:
filters:
tags:
only: /.*/
- test-php-8.4-d10-stable:
filters:
tags:
only: /.*/
- test-php-8.4-d10-canary:
filters:
tags:
only: /.*/
- test-php-8.3-d11-legacy:
filters:
tags:
only: /.*/
- test-php-8.3-d11-stable:
filters:
tags:
only: /.*/
- test-php-8.2-legacy:
- test-php-8.3-d11-canary:
filters:
tags:
only: /.*/
- test-php-8.2-next:
- test-php-8.4-d11-legacy:
filters:
tags:
only: /.*/
- test-php-8.3:
- test-php-8.4-d11-stable:
filters:
tags:
only: /.*/
- test-php-8.3-next:
- test-php-8.4-d11-canary:
filters:
tags:
only: /.*/
- deploy:
requires:
- test-php-8.2
- test-php-8.2-legacy
- test-php-8.2-next
- test-php-8.3
- test-php-8.3-next
- test-php-8.2-d10-legacy
- test-php-8.2-d10-stable
- test-php-8.2-d10-canary
- test-php-8.3-d10-legacy
- test-php-8.3-d10-stable
- test-php-8.3-d10-canary
- test-php-8.4-d10-legacy
- test-php-8.4-d10-stable
- test-php-8.4-d10-canary
- test-php-8.3-d11-legacy
- test-php-8.3-d11-stable
- test-php-8.3-d11-canary
- test-php-8.4-d11-legacy
- test-php-8.4-d11-stable
- test-php-8.4-d11-canary
filters:
tags:
only: /.*/
Loading

0 comments on commit 7c6df58

Please sign in to comment.