File tree Expand file tree Collapse file tree 9 files changed +39
-25
lines changed Expand file tree Collapse file tree 9 files changed +39
-25
lines changed Original file line number Diff line number Diff line change
1
+ * @ yoanm
Original file line number Diff line number Diff line change 2
2
build
3
3
# A library must not provide a composer.lock file
4
4
composer.lock
5
+
6
+ # Phpunit
7
+ .phpunit.result.cache
Original file line number Diff line number Diff line change @@ -11,18 +11,28 @@ build_failure_conditions:
11
11
build :
12
12
dependencies :
13
13
override :
14
- - make build
14
+ -
15
+ command : make build
16
+ title : Build deps
15
17
tests :
16
18
stop_on_failure : true
17
19
override :
18
20
-
19
21
command : make coverage
22
+ title : Coverage
20
23
idle_timeout : 1200
21
24
coverage :
22
25
file : ' build/coverage/clover.xml'
23
26
format : ' php-clover'
24
- - php-scrutinizer-run --enable-security-analysis
25
- - make codestyle
27
+ -
28
+ command : make codestyle
29
+ title : Code style
30
+ -
31
+ command : composer global require maglnet/composer-require-checker && composer-require-checker check composer.json
32
+ title : Composer-require-checker
33
+ -
34
+ command : php-scrutinizer-run --enable-security-analysis
35
+ title : Scrutinizer checks
26
36
cache :
27
37
directories :
28
38
- ~/.composer
37
47
COVERAGE_CLOVER_FILE_PATH : ' build/coverage/clover.xml'
38
48
PHPCS_DISABLE_WARNING : " true"
39
49
php :
40
- version : " 7.1 "
50
+ version : " 7.3 "
41
51
timezone : UTC
42
52
postgresql : false
43
53
redis : false
Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
- - ' 7.1'
5
4
- ' 7.2'
6
5
- ' 7.3'
7
6
- ' 7.4'
8
7
9
8
env :
10
9
global :
11
- CI : ' true'
12
- TEST_OUTPUT_STYLE : ' pretty'
13
- PHPCS_REPORT_STYLE : ' full'
14
- COMPOSER_OPTIONS : ' --optimize-autoloader'
15
- matrix :
16
- - SYMFONY_VERSION : ' ~3.0'
17
- - SYMFONY_VERSION : ' ~4.0'
18
-
19
- sudo : false
20
-
21
- matrix :
10
+ - CI : ' true'
11
+ - TEST_OUTPUT_STYLE : ' pretty'
12
+ - PHPCS_REPORT_STYLE : ' full'
13
+ - COMPOSER_OPTIONS : ' --optimize-autoloader'
14
+ jobs :
15
+ - SYMFONY_VERSION : ' ~3.0'
16
+ - SYMFONY_VERSION : ' ~4.0'
17
+
18
+ jobs :
22
19
fast_finish : true
23
20
24
21
before_install :
25
22
# remove xdebug to speed up build
26
23
- phpenv config-rm xdebug.ini || true
27
24
28
25
install :
29
- - composer require symfony/validator:$SYMFONY_VERSION
26
+ - composer require symfony/validator:$SYMFONY_VERSION symfony/intl:$SYMFONY_VERSION symfony/expression-language:$SYMFONY_VERSION
30
27
- make build
31
28
script :
32
29
- make test-technical
@@ -41,3 +38,4 @@ branches:
41
38
except :
42
39
- /.*\-dev$/
43
40
- /.*\-patch(\-\d+)?$/
41
+ - /^dev-.*/
Original file line number Diff line number Diff line change 4
4
5
5
[ ![ Scrutinizer Build Status] ( https://img.shields.io/scrutinizer/build/g/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk.svg?label=Scrutinizer&logo=scrutinizer )] ( https://scrutinizer-ci.com/g/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk/build-status/master ) [ ![ Scrutinizer Code Quality] ( https://img.shields.io/scrutinizer/g/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk/master.svg?logo=scrutinizer )] ( https://scrutinizer-ci.com/g/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk/?branch=master ) [ ![ Code Coverage] ( https://img.shields.io/scrutinizer/coverage/g/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk/master.svg?logo=scrutinizer )] ( https://scrutinizer-ci.com/g/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk/?branch=master )
6
6
7
- [ ![ Travis Build Status] ( https://img.shields.io/travis/com/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk/master.svg?label=Travis&logo=travis )] ( https://travis-ci.com/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk ) <!-- NOT WORKING WITH travis-ci.com [](https://php.net/) --> [ ![ Travis Symfony Versions] ( https://img.shields.io/badge/Symfony-v3 %20%2F%20v4 -8892BF.svg?logo=travis )] ( https://symfony.com/ )
7
+ [ ![ Travis Build Status] ( https://img.shields.io/travis/com/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk/master.svg?label=Travis&logo=travis )] ( https://travis-ci.com/yoanm/php-jsonrpc-params-symfony-constraint-doc-sdk ) <!-- NOT WORKING WITH travis-ci.com [](https://php.net/) --> [ ![ Travis Symfony Versions] ( https://img.shields.io/badge/Symfony-v4 %20%2F%20v5 -8892BF.svg?logo=travis )] ( https://symfony.com/ )
8
8
9
9
[ ![ Latest Stable Version] ( https://img.shields.io/packagist/v/yoanm/jsonrpc-params-symfony-constraint-doc-sdk.svg )] ( https://packagist.org/packages/yoanm/jsonrpc-params-symfony-constraint-doc-sdk ) [ ![ Packagist PHP version] ( https://img.shields.io/packagist/php-v/yoanm/jsonrpc-params-symfony-constraint-doc-sdk.svg )] ( https://packagist.org/packages/yoanm/jsonrpc-params-symfony-constraint-doc-sdk )
10
10
11
11
PHP SDK to generate JSON-RPC documentation from symfony constraint
12
12
13
13
See [ yoanm/symfony-jsonrpc-params-sf-constraints-doc] ( https://github.com/yoanm/symfony-jsonrpc-params-sf-constraints-doc ) for automatic dependency injection.
14
14
15
+ ## Versions
16
+ - Symfony v3/4 PHP >=7.1 : ` v0.x `
17
+ - Symfony v4/5 PHP >=7.2 : ` v1.0 `
18
+
15
19
## How to use
16
20
17
21
Create the transformer :
Original file line number Diff line number Diff line change 30
30
"yoanm/symfony-jsonrpc-http-server" : " Symfony Bundle to convert an HTTP json-rpc request into HTTP json-rpc response"
31
31
},
32
32
"require" : {
33
- "php" : " >=7.1 " ,
33
+ "php" : " >=7.2 " ,
34
34
"yoanm/jsonrpc-server-doc-sdk" : " ^0.2" ,
35
- "symfony/validator" : " ^3 .0 || ^4 .0"
35
+ "symfony/validator" : " ^4 .0 || ^5 .0"
36
36
},
37
37
"require-dev" : {
38
38
"behat/behat" : " ~3.0" ,
39
39
"squizlabs/php_codesniffer" : " 3.*" ,
40
40
"phpunit/phpunit" : " ^7.0 || ^8.0" ,
41
- "yoanm/php-unit-extended" : " ^1.0"
41
+ "yoanm/php-unit-extended" : " ^1.0" ,
42
+ "symfony/intl" : " ^4.0 || ^5.0" ,
43
+ "symfony/expression-language" : " ^4.0 || ^5.0"
42
44
}
43
45
}
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ Feature: ConstraintToParamsDocTransformer - Email constraint
25
25
"""
26
26
use Symfony\Component\Validator\Constraints as ConstraintNS;
27
27
return new ConstraintNS\Email([
28
- 'checkMX' => false,
29
- 'checkHost' => false,
30
28
'payload' => [
31
29
'documentation' => [
32
30
'description' => 'description',
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ Feature: ConstraintToParamsDocTransformer - Url constraint
25
25
"""
26
26
use Symfony\Component\Validator\Constraints as ConstraintNS;
27
27
return new ConstraintNS\Url([
28
- 'checkDNS' => true,
29
28
'payload' => [
30
29
'documentation' => [
31
30
'type' => 'string',
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ Feature: ConstraintToParamsDocTransformer - Url constraint
26
26
use Symfony\Component\Validator\Constraints as ConstraintNS;
27
27
return new ConstraintNS\Url([
28
28
'protocols' => ['http'],
29
- 'checkDNS' => true,
30
29
'payload' => [
31
30
'documentation' => [
32
31
'description' => 'description',
You can’t perform that action at this time.
0 commit comments