Skip to content

Commit

Permalink
Addes support for PHP8 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecourtial authored Feb 9, 2021
1 parent dbddc8d commit 1c0a918
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
43 changes: 31 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ commands:
if [ ! -f vendor/autoload.php ];then
curl https://getcomposer.org/composer-stable.phar --location --silent --output /usr/bin/composer;
chmod +x /usr/bin/composer;
composer global require hirak/prestissimo;
composer install --no-interaction --no-progress;
fi
Expand Down Expand Up @@ -51,29 +50,49 @@ commands:
command: make phpcs

executors:
php:
php74:
docker:
- image: php:7.3.8-cli-alpine3.10
- image: php:7.4-cli-alpine
working_directory: ~/repository
php80:
docker:
- image: php:8.0-cli-alpine
working_directory: ~/repository

jobs:
composer:
executor: php
composer74:
executor: php74
steps:
- store-composer-cache

phpcs:
executor: php
phpcs74:
executor: php74
steps:
- checkout-alpine
- restore-composer-cache
- phpcs
composer80:
executor: php80
steps:
- store-composer-cache

phpcs80:
executor: php80
steps:
- checkout-alpine
- restore-composer-cache
- phpcs

workflows:
version: 2.1
Code quality:
Code quality PHP 7.4:
jobs:
- composer74
- phpcs74:
requires:
- composer74
Code quality PHP 8.0:
jobs:
- composer
- phpcs:
- composer80
- phpcs80:
requires:
- composer
- composer80
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
"require": {
"php": "^7.1",
"php": ">=7.1",
"squizlabs/php_codesniffer": "^3.5"
}
}

0 comments on commit 1c0a918

Please sign in to comment.