From c103a63691ce7febc76bb376fbfbe8ed569d061e Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 19 Dec 2023 11:37:51 +0100 Subject: [PATCH 1/2] fix readthedocs build --- .readthedocs.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 5c3357f8..015705dc 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,5 +1,10 @@ version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.11" + sphinx: configuration: Resources/doc/conf.py @@ -8,6 +13,5 @@ formats: - pdf python: - version: "3.7" install: - requirements: Resources/doc/requirements.txt From c6b38d0553ce53654268b0f91218a696caec7d33 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 19 Dec 2023 11:42:55 +0100 Subject: [PATCH 2/2] get rid of simple-phpunit and make it actually simple by using phpunit directly --- .github/workflows/php.yml | 5 ++--- composer.json | 11 ++++++++--- phpunit.xml.dist | 14 -------------- 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 6c0087db..1d55e688 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -62,17 +62,16 @@ jobs: SYMFONY_REQUIRE: ${{ matrix.symfony-version }} run: | composer update ${{ matrix.composer-flag }} --prefer-dist --no-interaction --no-progress - vendor/bin/simple-phpunit install - name: Composer validate run: composer validate --strict --no-check-lock if: ${{ matrix.stability != 'dev' }} - name: Run tests - run: php vendor/bin/simple-phpunit -v + run: php vendor/bin/phpunit -v if: ${{ matrix.stability != 'dev' }} - name: Run tests allow to fail - run: php vendor/bin/simple-phpunit -v || true + run: php vendor/bin/phpunit -v || true continue-on-error: true if: ${{ matrix.stability == 'dev' }} diff --git a/composer.json b/composer.json index 85e279b8..cf3fb127 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "symfony/browser-kit": "^4.4 || ^5.0 || ^6.0", "symfony/console": "^4.4 || ^5.0 || ^6.0", "symfony/finder": "^4.4 || ^5.0 || ^6.0", - "symfony/phpunit-bridge": "v5.3.7", + "phpunit/phpunit": "^9.6.15", "symfony/security-bundle": "^4.4 || ^5.0 || ^6.0", "symfony/twig-bundle": "^4.4 || ^5.0 || ^6.0", "twig/twig": "^2.13", @@ -49,8 +49,8 @@ "symfony/expression-language": "^4.4 || ^5.0 || ^6.0", "symfony/monolog-bundle": "^3.0", "symfony/routing": "^4.4 || ^5.0 || ^6.0", - "matthiasnoback/symfony-dependency-injection-test": "^4.0", - "sebastian/exporter": "^2.0" + "matthiasnoback/symfony-config-test": "^4.3.0 || ^5.1", + "matthiasnoback/symfony-dependency-injection-test": "^4.3.1 || ^5.0" }, "suggest": { "jean-beru/fos-http-cache-cloudfront": "To use CloudFront proxy", @@ -74,5 +74,10 @@ "classmap": [ "tests/Functional/Fixtures/app/AppKernel.php" ] + }, + "config": { + "allow-plugins": { + "php-http/discovery": true + } } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e6888b35..dc246058 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -25,25 +25,11 @@ - - - - - - 0 - - - - -