From 90e7164fdcf197e98287cfb8e88732e0f55d44c9 Mon Sep 17 00:00:00 2001 From: Romain Date: Tue, 7 Jun 2022 12:12:13 +0200 Subject: [PATCH 1/3] add php 8 in travis config + bump 7.3 to 7.4 --- .travis.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..410d4d0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,59 @@ +language: php + +cache: + directories: + - $HOME/.composer/cache/files + +branches: + except: + - /^analysis-.*$/ + +env: + global: + - TEST_COMMAND="composer test" + +matrix: + fast_finish: true + include: + # Minimum supported Symfony version and latest PHP version + - php: 7.4 + env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak" + + # Test the latest stable release + - php: 7.1 + - php: 7.2 + - php: 7.3 + - php: 8.0 + - php: 8.1 + + # Test LTS versions + - php: 7.4 + env: DEPENDENCIES="dunglas/symfony-lock:^3" + - php: 7.4 + env: DEPENDENCIES="dunglas/symfony-lock:^4" + + # Latest commit to master + - php: 7.4 + env: STABILITY="dev" + + allow_failures: + # dev stability is allowed to fail. + - env: STABILITY="dev" + +before_install: + - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi + - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi; + - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi; + +install: + # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 + - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi + - COMPOSER_MEMORY_LIMIT=-1 composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction + +script: + - composer validate --strict --no-check-lock + - $TEST_COMMAND + +after_success: + - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi + - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi From bbd36d19ee8426c2a37dc24df49b3eedadaf80a4 Mon Sep 17 00:00:00 2001 From: Romain Date: Tue, 7 Jun 2022 12:13:59 +0200 Subject: [PATCH 2/3] support symfony 6 --- composer.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 88a87f2..bcfcf36 100644 --- a/composer.json +++ b/composer.json @@ -17,16 +17,16 @@ "cache/void-adapter": "^1.0", "psr/http-client": "^1.0", "psr/http-factory": "^1.0", - "symfony/config": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0", - "symfony/dependency-injection": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0", - "symfony/event-dispatcher": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0", - "symfony/http-foundation": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0", - "symfony/http-kernel": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0" + "symfony/config": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0 || ^6.0", + "symfony/dependency-injection": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0 || ^6.0", + "symfony/event-dispatcher": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0 || ^6.0", + "symfony/http-foundation": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0 || ^6.0", + "symfony/http-kernel": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0 || ^6.0" }, "require-dev": { "phpunit/phpunit": "^7.5.4 || ^8.5", - "symfony/framework-bundle": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0", - "symfony/browser-kit": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0", + "symfony/framework-bundle": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0 || ^6.0", + "symfony/browser-kit": "^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1 || ^5.0 || ^6.0", "nyholm/symfony-bundle-test": "^1.4" }, "suggest": { From 749349454fcfe1e4b71d5a8ed6860d010a7de9c9 Mon Sep 17 00:00:00 2001 From: Romain Gautier Date: Wed, 8 Nov 2023 10:59:44 +0000 Subject: [PATCH 3/3] remove travis --- .travis.yml | 59 ----------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 410d4d0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,59 +0,0 @@ -language: php - -cache: - directories: - - $HOME/.composer/cache/files - -branches: - except: - - /^analysis-.*$/ - -env: - global: - - TEST_COMMAND="composer test" - -matrix: - fast_finish: true - include: - # Minimum supported Symfony version and latest PHP version - - php: 7.4 - env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak" - - # Test the latest stable release - - php: 7.1 - - php: 7.2 - - php: 7.3 - - php: 8.0 - - php: 8.1 - - # Test LTS versions - - php: 7.4 - env: DEPENDENCIES="dunglas/symfony-lock:^3" - - php: 7.4 - env: DEPENDENCIES="dunglas/symfony-lock:^4" - - # Latest commit to master - - php: 7.4 - env: STABILITY="dev" - - allow_failures: - # dev stability is allowed to fail. - - env: STABILITY="dev" - -before_install: - - if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi - - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi; - - if ! [ -v "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi; - -install: - # To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355 - - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi - - COMPOSER_MEMORY_LIMIT=-1 composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction - -script: - - composer validate --strict --no-check-lock - - $TEST_COMMAND - -after_success: - - if [[ $COVERAGE = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi - - if [[ $COVERAGE = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi