Skip to content

Commit 97289ed

Browse files
authored
Merge pull request #196 from dunglas/fix/ci
BREAKING CHANGE: bump all dependencies
2 parents ed9c195 + c33e710 commit 97289ed

22 files changed

+1651
-669
lines changed

.editorconfig

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,27 @@
55
root = true
66

77
[*]
8-
# Change these settings to your own preference
98
indent_style = space
109
indent_size = 4
11-
12-
# We recommend you to keep these unchanged
1310
end_of_line = lf
1411
charset = utf-8
1512
trim_trailing_whitespace = true
1613
insert_final_newline = true
1714

1815
[*.feature]
19-
indent_style = space
2016
indent_size = 2
2117

2218
[*.json]
23-
indent_style = space
2419
indent_size = 2
2520

2621
[*.md]
2722
trim_trailing_whitespace = false
2823

29-
[*.php]
30-
indent_style = space
31-
indent_size = 4
32-
33-
[*.xml]
34-
indent_style = space
35-
indent_size = 4
36-
3724
[*.yml]
38-
indent_style = space
39-
indent_size = 4
4025
trim_trailing_whitespace = false
4126

42-
[.gitmodules]
43-
indent_style = tab
44-
45-
[.php_cs]
46-
indent_style = space
47-
indent_size = 4
48-
49-
[.styleci.yml]
50-
indent_style = space
51-
indent_size = 2
52-
5327
[.travis.yml]
54-
indent_style = space
55-
indent_size = 2
56-
57-
[appveyor.yml]
58-
indent_style = space
59-
indent_size = 2
60-
61-
[behat.yml]
62-
indent_style = space
6328
indent_size = 2
6429

6530
[composer.json]
66-
indent_style = space
67-
indent_size = 4
68-
69-
[phpunit.xml.dist]
70-
indent_style = space
7131
indent_size = 4

.travis.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,32 @@ cache:
66

77
matrix:
88
include:
9-
- php: '7.1'
10-
- php: '7.2'
11-
- php: '7.3'
9+
- php: '7.4'
1210
env: coverage=1 lint=1
13-
- php: '7.3'
11+
- php: '7.4'
1412
env: deps='low'
1513

1614
before_install:
1715
- phpenv config-rm xdebug.ini || echo "xdebug not available"
1816
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
1917
- export PATH="$PATH:$HOME/.composer/vendor/bin"
2018
- if [[ $coverage = 1 ]]; then mkdir -p build/logs; fi
21-
- if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2.1.0/php-coveralls.phar; fi
22-
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.16.0/php-cs-fixer.phar; fi
23-
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.11'; fi
24-
- wget -O box.phar https://github.com/humbug/box/releases/download/3.8.3/box.phar
19+
- if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2.2.0/php-coveralls.phar; fi
20+
- if [[ $lint = 1 ]]; then wget https://github.com/phpstan/phpstan/releases/download/0.12.9/phpstan.phar; fi
21+
- wget -O box.phar https://github.com/humbug/box/releases/download/3.8.4/box.phar
2522
- export BOX_BIN=$(pwd)/box.phar
2623

2724
install:
28-
- if [[ $coverage = 1 ]]; then composer require --dev --no-update 'phpunit/php-code-coverage:^7.0'; fi
29-
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.3" ]]; then composer install --prefer-dist --no-progress --no-suggest --ansi; fi
30-
- if [[ $TRAVIS_PHP_VERSION != "7.3" ]]; then composer update --prefer-stable --prefer-dist --no-progress --no-suggest --ansi; fi
25+
- if [[ $coverage = 1 ]]; then composer require --dev --no-update 'phpunit/php-code-coverage:^8.0'; fi
26+
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.4" ]]; then composer install --prefer-dist --no-progress --no-suggest --ansi; fi
27+
- if [[ $TRAVIS_PHP_VERSION != "7.4" ]]; then composer update --prefer-stable --prefer-dist --no-progress --no-suggest --ansi; fi
3128
- if [[ $deps = 'low' ]]; then composer update --prefer-dist --no-progress --no-suggest --prefer-stable --prefer-lowest --ansi; fi
3229

3330
script:
3431
- if [[ $coverage = 1 ]]; then phpdbg -qrr vendor/bin/simple-phpunit --coverage-clover build/logs/clover.xml; else vendor/bin/simple-phpunit; fi
35-
- if [[ $lint = 1 ]]; then php php-cs-fixer.phar fix --dry-run --diff --no-ansi; fi
36-
- if [[ $lint = 1 ]]; then phpstan analyse -l5 --ansi src; fi
37-
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.3" ]]; then ./bin/compile; fi
32+
- if [[ $lint = 1 ]]; then vendor/bin/php-cs-fixer fix --dry-run --diff --no-ansi; fi
33+
- if [[ $lint = 1 ]]; then php phpstan.phar analyse; fi
34+
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.4" ]]; then ./bin/compile; fi
3835

3936
after_success:
4037
- if [[ $coverage = 1 ]]; then travis_retry php php-coveralls.phar; fi
@@ -48,5 +45,5 @@ deploy:
4845
on:
4946
tags: true
5047
repo: api-platform/schema-generator
51-
php: '7.3'
48+
php: '7.4'
5249
condition: "! $deps"

bin/compile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ php "$BOX_BIN" compile;
66

77
php schema.phar generate-types tmp/ tests/e2e/schema.yml;
88

9-
diff tests/e2e/src/AppBundle/Entity/Person.php tmp/AppBundle/Entity/Person.php;
10-
diff tests/e2e/src/AppBundle/Entity/PostalAddress.php tmp/AppBundle/Entity/PostalAddress.php;
11-
diff tests/e2e/src/AppBundle/Entity/Thing.php tmp/AppBundle/Entity/Thing.php;
9+
diff tests/e2e/src/App/Entity/Person.php tmp/App/Entity/Person.php;
10+
diff tests/e2e/src/App/Entity/PostalAddress.php tmp/App/Entity/PostalAddress.php;
11+
diff tests/e2e/src/App/Entity/Thing.php tmp/App/Entity/Thing.php;

composer.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@
1818
"psr-4": { "ApiPlatform\\SchemaGenerator\\Tests\\": "tests/" }
1919
},
2020
"require": {
21-
"php": ">=7.1",
22-
"doctrine/inflector": "^1.0",
23-
"easyrdf/easyrdf": "^0.9",
21+
"php": ">=7.4",
2422
"ext-json": "*",
23+
"doctrine/inflector": "^1.4.3 || ^2.0",
24+
"easyrdf/easyrdf": "^0.9",
2525
"friendsofphp/php-cs-fixer": "^2.15",
26-
"league/html-to-markdown": "^4.0",
26+
"league/html-to-markdown": "^4.9",
2727
"psr/log": "^1.0",
28-
"symfony/config": "^3.3 || ^4.0 || ^5.0",
29-
"symfony/console": "^2.7 || ^3.0 || ^4.0 || ^5.0",
30-
"symfony/yaml": "^2.7 || ^3.0 || ^4.0 || ^5.0",
31-
"twig/twig": "^1.35 || ^2.0 || ^3.0"
28+
"symfony/config": "^5.1",
29+
"symfony/console": "^5.1",
30+
"symfony/yaml": "^5.1",
31+
"twig/twig": " ^3.0"
3232
},
3333
"require-dev": {
34-
"api-platform/core": "^2.0",
35-
"doctrine/orm": "^2.2",
36-
"myclabs/php-enum": "^1.0",
37-
"symfony/doctrine-bridge": "^2.7 || ^3.0 || ^4.0 || ^5.0",
38-
"symfony/filesystem": "^2.7 || ^3.0 || ^4.0 || ^5.0",
39-
"symfony/phpunit-bridge": "^4.3 || ^5.0",
40-
"symfony/serializer": "^2.7 || ^3.0 || ^4.0 || ^5.0",
41-
"symfony/validator": "^2.7 || ^3.0 || ^4.0 || ^5.0"
34+
"api-platform/core": "^2.6",
35+
"doctrine/orm": "^2.8",
36+
"myclabs/php-enum": "^1.7",
37+
"symfony/doctrine-bridge": "^5.1",
38+
"symfony/filesystem": "^5.1",
39+
"symfony/phpunit-bridge": "^5.1",
40+
"symfony/serializer": "^5.1",
41+
"symfony/validator": "^5.1"
4242
},
4343
"bin": ["bin/schema"],
4444
"minimum-stability": "dev"

0 commit comments

Comments
 (0)