Skip to content

Commit

Permalink
Merge pull request #21 from sunrise-php/release/v1.8.0
Browse files Browse the repository at this point in the history
v1.8.0
  • Loading branch information
fenric authored Feb 1, 2021
2 parents 918f66d + 0c20943 commit ce2b085
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 42 deletions.
65 changes: 65 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
php71:
docker:
- image: circleci/php:7.1-cli-node-browsers
steps:
- run: sudo pecl install apcu
- run: sudo docker-php-ext-enable apcu
- run: php -v
- checkout
- run: composer install --no-interaction --prefer-source --no-suggest
- run: php vendor/bin/phpunit --colors=always
php72:
docker:
- image: circleci/php:7.2-cli-node-browsers
steps:
- run: sudo pecl install apcu
- run: sudo docker-php-ext-enable apcu
- run: php -v
- checkout
- run: composer install --no-interaction --prefer-source --no-suggest
- run: php vendor/bin/phpunit --colors=always
php73:
docker:
- image: circleci/php:7.3-cli-node-browsers
steps:
- run: sudo pecl install apcu
- run: sudo docker-php-ext-enable apcu
- run: php -v
- checkout
- run: composer install --no-interaction --prefer-source --no-suggest
- run: php vendor/bin/phpunit --colors=always
php74:
docker:
- image: circleci/php:7.4-cli-node-browsers
steps:
- run: sudo pecl install apcu
- run: sudo docker-php-ext-enable apcu
- run: php -v
- checkout
- run: composer install --no-interaction --prefer-source --no-suggest
- run: php vendor/bin/phpunit --colors=always
php80:
docker:
- image: circleci/php:8.0-cli-node-browsers
steps:
- run: sudo pecl install apcu
- run: sudo docker-php-ext-enable apcu
- run: php -v
- checkout
- run: composer install --no-interaction --prefer-source --no-suggest
- run: php vendor/bin/phpunit --colors=always
workflows:
version: 2
build:
jobs:
- php71
- php72
- php73
- php74
- php80
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.php_cs.cache
.phpunit.result.cache
composer.lock
coverage.xml
phpbench.json
Expand Down
13 changes: 0 additions & 13 deletions .scrutinizer.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## OpenApi (Swagger) Specification support for Sunrise router

[![Build Status](https://scrutinizer-ci.com/g/sunrise-php/http-router-openapi/badges/build.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-router-openapi/build-status/master)
[![Build Status](https://circleci.com/gh/sunrise-php/http-router-openapi.svg?style=shield)](https://circleci.com/gh/sunrise-php/http-router-openapi)
[![Code Coverage](https://scrutinizer-ci.com/g/sunrise-php/http-router-openapi/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-router-openapi/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sunrise-php/http-router-openapi/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-router-openapi/?branch=master)
[![Total Downloads](https://poser.pugx.org/sunrise/http-router-openapi/downloads?format=flat)](https://packagist.org/packages/sunrise/http-router-openapi)
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"router",
"annotations",
"openapi",
"swagger"
"swagger",
"php7",
"php8"
],
"authors": [
{
Expand All @@ -20,14 +22,13 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.1|^8.0",
"doctrine/annotations": "^1.6",
"doctrine/cache": "^1.6",
"sunrise/http-router": "^2.4"
},
"require-dev": {
"phpbench/phpbench": "0.16.10",
"phpunit/phpunit": "7.5.20",
"phpunit/phpunit": "7.5.20||9.5.0",
"sunrise/coding-standard": "1.0.0",
"justinrainbow/json-schema": "5.2.10"
},
Expand Down
14 changes: 7 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<phpunit bootstrap="tests/bootstrap.php" colors="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Sunrise // Open Api Specification Support for HTTP Router Test Suite">
<testsuite name="OpenAPI Specification Support for Sunrise HTTP Router Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit ce2b085

Please sign in to comment.