Skip to content

Commit

Permalink
Merge pull request #608 from FriendsOfSymfony/fix-readthedocs
Browse files Browse the repository at this point in the history
fix readthedocs build
  • Loading branch information
dbu committed Dec 19, 2023
2 parents 5391f80 + c6b38d0 commit d3da27a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/php.yml
Expand Up @@ -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' }}
6 changes: 5 additions & 1 deletion .readthedocs.yaml
@@ -1,5 +1,10 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: Resources/doc/conf.py

Expand All @@ -8,6 +13,5 @@ formats:
- pdf

python:
version: "3.7"
install:
- requirements: Resources/doc/requirements.txt
11 changes: 8 additions & 3 deletions composer.json
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -74,5 +74,10 @@
"classmap": [
"tests/Functional/Fixtures/app/AppKernel.php"
]
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
}
}
14 changes: 0 additions & 14 deletions phpunit.xml.dist
Expand Up @@ -25,25 +25,11 @@

<listeners>
<listener class="\Mockery\Adapter\Phpunit\TestListener" />
<!--DebugClassLoaded is enable by default from 4.2
https://github.com/symfony/symfony/pull/28412
It has to be disabled to avoid tests failed
-->
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
<arguments>
<array>
<element key="debug-class-loader">
<integer>0</integer>
</element>
</array>
</arguments>
</listener>
</listeners>

<php>
<env name="KERNEL_DIR" value="./tests/Functional/Fixtures/app" />
<env name="KERNEL_CLASS" value="AppKernel" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
<server name="SYMFONY_PHPUNIT_VERSION" value="8.5" />
</php>
</phpunit>

0 comments on commit d3da27a

Please sign in to comment.