Skip to content

Commit

Permalink
Merge pull request #3 from driftphp/feature/to-php8
Browse files Browse the repository at this point in the history
To php8
  • Loading branch information
mmoreram authored Jun 24, 2021
2 parents cf9e8a2 + a9cd36a commit b4cc9b0
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 32 deletions.
38 changes: 11 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,39 @@
version: 2
jobs:
test-php73:

test-php74:
docker:
- image: circleci/php:7.3-cli
- image: circleci/php:7.4-cli
- image: rabbitmq

working_directory: ~/project
steps:
- checkout

- run:
name: Install PHPUnit
command: |
composer require phpunit/phpunit:7.5.17 --no-update
- run:
name: Run tests / Symfony 4^3
command: |
composer update -n --prefer-dist --prefer-lowest --no-suggest
php vendor/bin/phpunit
- run:
name: Run tests / Symfony 5^0
name: Run tests
command: |
composer update -n --prefer-dist --no-suggest
php vendor/bin/phpunit
sh .circleci/start.sh
test-php74:
test-php80:
docker:
- image: circleci/php:7.4-cli
- image: circleci/php:8.0-cli
- image: rabbitmq

working_directory: ~/project
steps:
- checkout

- run:
name: Install PHPUnit
command: |
composer require phpunit/phpunit:7.5.17 --no-update
- run:
name: Run tests / Symfony 5^0
name: Run tests
command: |
composer update -n --prefer-dist --no-suggest
php vendor/bin/phpunit
sh .circleci/start.sh
workflows:
version: 2
test:
jobs:
- test-php73
- test-php74
- test-php74
- test-php80
4 changes: 4 additions & 0 deletions .circleci/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

while ! nc -z localhost 5672; do sleep 1; done
php vendor/bin/phpunit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Some first steps for you!

- [Go to DOCS](https://driftphp.io/#/?id=amqp-adapter)

or
or

- [Try a demo](https://github.com/driftphp/demo)
- [Install the skeleton](https://github.com/driftphp/skeleton)
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
],

"require": {
"php": "^7.3",
"php": "^7.4 || ^8.0",
"symfony/dependency-injection": "^5.0",
"bunny/bunny": "^0.4.1",
"drift/http-kernel": "0.1.*, >=0.1.5",
"mmoreram/base-bundle": "^2.1"
"bunny/bunny": "^0.5.0",
"drift/http-kernel": "^0.1.15",
"mmoreram/base-bundle": "^2.3"
},

"require-dev": {
"phpunit/phpunit": "^9"
},

"autoload": {
Expand Down

0 comments on commit b4cc9b0

Please sign in to comment.