Skip to content

Commit dbb33ee

Browse files
committed
requires PHP 7.4+ & SF 5.4+
cleanup travis matrix
1 parent e5bde80 commit dbb33ee

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

.travis.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,21 @@ env:
1313
matrix:
1414
fast_finish: true
1515
include:
16-
# Test the latest stable release
17-
- php: 7.2
18-
env: PHPSTAN=true COMPOSER1=true
19-
- php: 7.4
20-
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" TESTNOSECURITYBUNDLE=true
16+
# Test latest stable features
17+
- php: 8.1
18+
env: PHPSTAN=true COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"
2119

22-
# Test LTS versions.
23-
- php: 7.4
24-
env: DEPENDENCIES="symfony/lts:^4"
20+
- php: 8.0
2521

26-
# Latest commit to master
22+
# Test the oldest possible release - SF 5.4, PHP 7.4, without security-bundle
2723
- php: 7.4
28-
env: STABILITY="dev"
24+
env: PHPSTAN=true COMPOSER1=true TESTNOSECURITYBUNDLE=true COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
2925

3026
allow_failures:
3127
# Minimum supported dependencies with the latest and oldest PHP version
32-
- php: 7.4
28+
- php: 8.1
3329
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
34-
- php: 7.2
30+
- php: 7.4
3531
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
3632
# Dev-master is allowed to fail.
3733
- env: STABILITY="dev"
@@ -52,11 +48,11 @@ script:
5248
- composer validate --strict --no-check-lock
5349
# simple-phpunit is the PHPUnit wrapper provided by the PHPUnit Bridge component and
5450
# it helps with testing legacy code and deprecations (composer require symfony/phpunit-bridge)
55-
#- ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS
51+
- ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS
5652
- if [[ $PHPSTAN == true ]]; then composer phpstan; fi
57-
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
53+
#- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
5854
# Let's test without the security bundle
59-
- if [[ $TESTNOSECURITYBUNDLE == true ]]; then composer remove --dev symfony/security-bundle && phpunit Tests/NoSecurityBundleTest.php; fi
55+
- if [[ $TESTNOSECURITYBUNDLE == true ]]; then composer remove --dev symfony/security-bundle && ./vendor/bin/simple-phpunit Tests/NoSecurityBundleTest.php; fi
6056

6157
after_script:
6258
- ./vendor/bin/php-coveralls -v

Tests/GraphQLiteTestingKernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
119119
$container->loadFromExtension('framework', $frameworkConf);
120120
if ($this->enableSecurity) {
121121
$container->loadFromExtension('security', array(
122+
'enable_authenticator_manager' => true,
122123
'providers' => [
123124
'in_memory' => [
124125
'memory' => [

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@
1616
}
1717
],
1818
"require" : {
19-
"php" : ">=7.2",
19+
"php" : ">=7.4",
2020
"ext-json": "*",
2121
"thecodingmachine/graphqlite" : "^5.0",
2222
"thecodingmachine/graphqlite-symfony-validator-bridge" : "^5.0",
23-
"symfony/framework-bundle": "^5.3 || ^6",
24-
"symfony/validator": "^5.3 || ^6",
25-
"symfony/translation": "^5.3 || ^6",
23+
"symfony/framework-bundle": "^5.4 || ^6",
24+
"symfony/validator": "^5.4 || ^6",
25+
"symfony/translation": "^5.4 || ^6",
2626
"doctrine/annotations": "^1.13",
2727
"symfony/psr-http-message-bridge": "^2.0",
2828
"nyholm/psr7": "^1.1",
2929
"laminas/laminas-diactoros": "^2.2.2",
3030
"overblog/graphiql-bundle": "^0.1.2 | ^0.2",
3131
"thecodingmachine/cache-utils": "^1",
32-
"symfony/console": "^5.3 || ^6"
32+
"symfony/console": "^5.4 || ^6"
3333
},
3434
"require-dev": {
35-
"symfony/security-bundle": "^5.3 || ^6",
36-
"symfony/yaml": "^5.3 || ^6",
35+
"symfony/security-bundle": "^5.4 || ^6",
36+
"symfony/yaml": "^5.4 || ^6",
3737
"phpstan/phpstan": "^0.12.90",
3838
"beberlei/porpaginas": "^1.2",
3939
"php-coveralls/php-coveralls": "^2.1.0",
40-
"symfony/phpunit-bridge": "^5.3 || ^6",
40+
"symfony/phpunit-bridge": "^5.4 || ^6",
4141
"thecodingmachine/phpstan-strict-rules": "^v0.12.1",
4242
"composer/package-versions-deprecated": "^1.8",
4343
"phpstan/phpstan-webmozart-assert": "^0.12.12"

0 commit comments

Comments
 (0)