Skip to content

Commit

Permalink
Bump PHP version to 8.1 (#18)
Browse files Browse the repository at this point in the history
* Add php8.1 circleci image

* Bump php versiong
  • Loading branch information
tutelaris committed May 2, 2023
1 parent b1ac149 commit ec2d88d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
33 changes: 26 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,32 @@ integration_tests: &integration_tests
environment:
ST_ENGINE_NAME: php-integration-test-$CIRCLE_BUILD_NUM
steps:
- install_deps
- run_integration_tests
- install_deps
- run_integration_tests

php81: &php81
docker:
- image: cimg/php:8.1.7-browsers

php73: &php73
docker:
- image: circleci/php:7.3-browsers
- image: cimg/php:7.3-browsers

php72: &php72
docker:
- image: circleci/php:7.2-browsers
- image: cimg/php:7.2-browsers

php71: &php71
docker:
- image: circleci/php:7.1-browsers
- image: cimg/php:7.1-browsers

php70: &php70
docker:
- image: circleci/php:7.0-browsers
- image: cimg/php:7.0-browsers

php56: &php56
docker:
- image: circleci/php:5.6-browsers
- image: cimg/php:5.6-browsers

commands:

Expand Down Expand Up @@ -67,6 +71,13 @@ commands:
command: ST_ENGINE_NAME="php-integration-test-$CIRCLE_BUILD_NUM" vendor/bin/phpunit -c phpunit.xml.dist --testsuite integration

jobs:
php-81-unit-tests:
<<: *unit_tests
<<: *php81

php-81-integration-tests:
<<: *integration_tests
<<: *php81

php-73-unit-tests:
<<: *unit_tests
Expand Down Expand Up @@ -130,6 +141,14 @@ workflows:
jobs:
- qa-phplint
- qa-phpcs

php-81-tests:
jobs:
- php-81-unit-tests
- php-81-integration-tests:
filters:
branches:
ignore: /pull.*/
php-73-tests:
jobs:
- php-73-unit-tests
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
{"name" : "Aurélien FOUCRET", "email": "[email protected]"}
],
"require" : {
"php" : "^5.6|^7.0",
"elastic/openapi-codegen" : "^1.0.2",
"php" : "^5.6|^7.0|^8.0",
"elastic/openapi-codegen" : "^1.0.5",
"psr/log" : "^1.0."
},
"require-dev" : {
"phpunit/phpunit" : "^5.6.0|^6.3.0",
"phpunit/phpunit" : "^5.6.0|^6.3.0|9.5.20",
"squizlabs/php_codesniffer" : "^3.4.0",
"symfony/yaml" : "*",
"friendsofphp/php-cs-fixer": "^2.14",
Expand Down

0 comments on commit ec2d88d

Please sign in to comment.