-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove support of php 7.3, add test run for php 8.1
- Loading branch information
1 parent
04a84a1
commit 46783e4
Showing
13 changed files
with
45 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,21 @@ version: 2.1 | |
orbs: | ||
node: circleci/[email protected] | ||
|
||
composer_with_lowest_dependencies: &composer_with_lowest_dependencies | ||
install_composer: &install_composer | ||
run: | | ||
apt-get update | ||
apt-get -y install git zip | ||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | ||
php composer-setup.php | ||
php -r "unlink('composer-setup.php');" | ||
mv composer.phar /usr/local/bin/composer | ||
composer_update_with_lowest_dependencies: &composer_update_with_lowest_dependencies | ||
run: | | ||
composer update --prefer-lowest --prefer-stable | ||
composer: &composer | ||
composer_update: &composer_update | ||
run: | | ||
composer update | ||
|
@@ -30,43 +40,47 @@ jobs: | |
php-version: | ||
type: string | ||
docker: | ||
- image: "circleci/php:<< parameters.php-version >>" | ||
- image: "php:<< parameters.php-version >>" | ||
steps: | ||
- checkout | ||
- <<: *composer | ||
- <<: *install_composer | ||
- <<: *composer_update | ||
- <<: *tests | ||
|
||
tests-with-future-mode: | ||
parameters: | ||
php-version: | ||
type: string | ||
docker: | ||
- image: "circleci/php:<< parameters.php-version >>" | ||
- image: "php:<< parameters.php-version >>" | ||
steps: | ||
- checkout | ||
- <<: *composer | ||
- <<: *install_composer | ||
- <<: *composer_update | ||
- <<: *tests_with_future_mode | ||
|
||
tests-with-lowest-dependencies: | ||
parameters: | ||
php-version: | ||
type: string | ||
docker: | ||
- image: "circleci/php:<< parameters.php-version >>" | ||
- image: "php:<< parameters.php-version >>" | ||
steps: | ||
- checkout | ||
- <<: *composer_with_lowest_dependencies | ||
- <<: *install_composer | ||
- <<: *composer_update_with_lowest_dependencies | ||
- <<: *tests | ||
|
||
documentation: | ||
parameters: | ||
php-version: | ||
type: string | ||
docker: | ||
- image: "circleci/php:<< parameters.php-version >>" | ||
- image: "php:<< parameters.php-version >>" | ||
steps: | ||
- checkout | ||
- <<: *composer | ||
- <<: *install_composer | ||
- <<: *composer_update | ||
- run: bin/doc > README.new.md | ||
- run: cmp --silent README.md README.new.md || cmp README.md README.new.md || (echo "Documentation is outdated. Run 'bin/doc > README.md'" && exit 1) | ||
|
||
|
@@ -93,19 +107,19 @@ workflows: | |
- documentation: | ||
matrix: | ||
parameters: | ||
php-version: ["8.0"] | ||
php-version: ["8.1"] | ||
- tests: | ||
matrix: | ||
parameters: | ||
php-version: ["7.3", "7.4", "8.0"] | ||
php-version: ["7.4", "8.0", "8.1"] | ||
- tests-with-future-mode: | ||
matrix: | ||
parameters: | ||
php-version: ["7.3", "7.4", "8.0"] | ||
php-version: ["7.4", "8.0", "8.1"] | ||
- tests-with-lowest-dependencies: | ||
matrix: | ||
parameters: | ||
php-version: ["7.3", "7.4", "8.0"] | ||
php-version: ["7.4", "8.0", "8.1"] | ||
- release-test | ||
- release: | ||
requires: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters