You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description phpunit-bridge/simple-phpunit seems to always download PHPUnit from github.com which is problematic if your build server does not have Internet access.
Our build server does not have Internet access, instead it uses a local Artifactory instance as a proxy/cache. Since phpunit-bridge always downloads from GitHub we can't run tests during our build.
How to reproduce
Configure composer to use a local repository, disable packagist and try to run phpunit in a server with no Internet access:
Possible Solution
Use composer to download phpunit.
Additional context
Jenkins log:
+ composer test
> bin/phpunit
#!/usr/bin/env php
PHP Fatal error: Uncaught RuntimeException: Could not find https://github.com/sebastianbergmann/phpunit/archive/6.5.zip in .../jenkins/workspace/demo/vendor/symfony/phpunit-bridge/bin/simple-phpunit:99
Stack trace:
#0 .../jenkins/workspace/demo/bin/phpunit(18): require()
#1 {main}
thrown in .../jenkins/workspace/demo/vendor/symfony/phpunit-bridge/bin/simple-phpunit on line 99
Script bin/phpunit handling the test event returned with error code 255
The text was updated successfully, but these errors were encountered:
Hello thanks for the report. This is not supported and is far from being trivial to implement.
For now, I think in your situation you have to resort to using phpunit in you own dependencies, using the bridge as a listener (configured by default when using Flex).
You will need to do ./vendor/bin/phpunit to run your tests suite.
Would it be possible (as "quickfix") to provide a composer extra field that specifies where to find the phpunit version? This could either be an (un)document internal feature, or perhaps even a full-fledged feature. I think it's not something a lot of people will use, but it will also make it possible to define a custom download location without a big impact (I hope).
Symfony version(s) affected: 4
Description
phpunit-bridge
/simple-phpunit
seems to always download PHPUnit fromgithub.com
which is problematic if your build server does not have Internet access.Our build server does not have Internet access, instead it uses a local Artifactory instance as a proxy/cache. Since
phpunit-bridge
always downloads from GitHub we can't run tests during our build.How to reproduce
Configure composer to use a local repository, disable packagist and try to run phpunit in a server with no Internet access:
Possible Solution
Use composer to download phpunit.
Additional context
Jenkins log:
The text was updated successfully, but these errors were encountered: