Skip to content

Commit

Permalink
requires PHP 7.4+ & SF 5.4+
Browse files Browse the repository at this point in the history
cleanup travis matrix
  • Loading branch information
janatjak committed Feb 22, 2022
1 parent e5bde80 commit dbb33ee
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
26 changes: 11 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,21 @@ env:
matrix:
fast_finish: true
include:
# Test the latest stable release
- php: 7.2
env: PHPSTAN=true COMPOSER1=true
- php: 7.4
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" TESTNOSECURITYBUNDLE=true
# Test latest stable features
- php: 8.1
env: PHPSTAN=true COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"

# Test LTS versions.
- php: 7.4
env: DEPENDENCIES="symfony/lts:^4"
- php: 8.0

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

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

after_script:
- ./vendor/bin/php-coveralls -v
1 change: 1 addition & 0 deletions Tests/GraphQLiteTestingKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
$container->loadFromExtension('framework', $frameworkConf);
if ($this->enableSecurity) {
$container->loadFromExtension('security', array(
'enable_authenticator_manager' => true,
'providers' => [
'in_memory' => [
'memory' => [
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@
}
],
"require" : {
"php" : ">=7.2",
"php" : ">=7.4",
"ext-json": "*",
"thecodingmachine/graphqlite" : "^5.0",
"thecodingmachine/graphqlite-symfony-validator-bridge" : "^5.0",
"symfony/framework-bundle": "^5.3 || ^6",
"symfony/validator": "^5.3 || ^6",
"symfony/translation": "^5.3 || ^6",
"symfony/framework-bundle": "^5.4 || ^6",
"symfony/validator": "^5.4 || ^6",
"symfony/translation": "^5.4 || ^6",
"doctrine/annotations": "^1.13",
"symfony/psr-http-message-bridge": "^2.0",
"nyholm/psr7": "^1.1",
"laminas/laminas-diactoros": "^2.2.2",
"overblog/graphiql-bundle": "^0.1.2 | ^0.2",
"thecodingmachine/cache-utils": "^1",
"symfony/console": "^5.3 || ^6"
"symfony/console": "^5.4 || ^6"
},
"require-dev": {
"symfony/security-bundle": "^5.3 || ^6",
"symfony/yaml": "^5.3 || ^6",
"symfony/security-bundle": "^5.4 || ^6",
"symfony/yaml": "^5.4 || ^6",
"phpstan/phpstan": "^0.12.90",
"beberlei/porpaginas": "^1.2",
"php-coveralls/php-coveralls": "^2.1.0",
"symfony/phpunit-bridge": "^5.3 || ^6",
"symfony/phpunit-bridge": "^5.4 || ^6",
"thecodingmachine/phpstan-strict-rules": "^v0.12.1",
"composer/package-versions-deprecated": "^1.8",
"phpstan/phpstan-webmozart-assert": "^0.12.12"
Expand Down

0 comments on commit dbb33ee

Please sign in to comment.