[InvalidArgumentException]
Project directory phpunit-6.5/ is not empty.
PHP Fatal error: Uncaught Error: Class 'Symfony\Bridge\PhpUnit\TextUI\Command' not found in
Failed to download sebastian/global-state from dist: No such zip file
[RuntimeException]
Failed to clone https://github.com/sebastianbergmann/global-state.git via https, ssh protocols, aborting.
- https://github.com/sebastianbergmann/global-state.git
fatal: destination path '/home/gitlab-runner/builds/.../vendor/bin/.phpunit/phpunit-6.5/vendor/sebastian/global-state' already exists and is not an empty directory.
- git@github.com:sebastianbergmann/global-state.git
Cloning into '/home/gitlab-runner/.../vendor/bin/.phpunit/phpunit-6.5/vendor/sebastian/global-state'...
done.
fatal: not a git repository: '/home/gitlab-runner/builds/0ba7bdf7/0/...
fatal: cannot repack to clean up
[RuntimeException]
Failed to clone https://github.com/sebastianbergmann/global-state.git via https, ssh protocols, aborting.
- https://github.com/sebastianbergmann/global-state.git
Cloning into '/home/gitlab-runner/builds/.../vendor/bin/.phpunit/phpunit-6.5/vendor/sebastian/global-state'...
done.
fatal: Unable to read current working directory: No such file or directory
- git@github.com:sebastianbergmann/global-state.git
fatal: destination path '/home/gitlab-runner/builds/.../vendor/bin/.phpunit/phpunit-6.5/vendor/sebastian/global-state' already exists and is not an empty directory.
[RuntimeException]
Package symfony/phpunit-bridge cannot install to "/home/gitlab-runner/builds/.../vendor/symfony/phpunit-bridge" inside its source at "/home/gitlab-runner/builds.../vendor/symfony/phpunit-bridge"
[RuntimeException]
Package symfony/phpunit-bridge cannot install to "/home/gitlab-runner/builds.../panel/vendor/symfony/phpunit-bridge" inside its source at "/home/gitlab-runner/builds/.../vendor/symfony/phpunit-bridge"
[RuntimeException]
Failed to clone https://github.com/sebastianbergmann/phpunit-mock-objects.git via https, ssh protocols, aborting.
- https://github.com/sebastianbergmann/phpunit-mock-objects.git
fatal: destination path '/home/gitlab-runner/builds/.../vendor/bin/.phpunit/phpunit-6.5/vendor/phpunit/phpunit-mock-objects' already exists and is not an empty directory.
- git@github.com:sebastianbergmann/phpunit-mock-objects.git
Cloning into '/home/gitlab-runner/builds/.../vendor/bin/.phpunit/phpunit-6.5/vendor/phpunit/phpunit-mock-objects'...
done.
fatal: remote composer already exists.
Диагностика:
phpunit stage запускался как:
export APP_ENV=dev && composer install && make phpunit
`где
make phpunit
`find tests/ -name "*Test.php" | ./vendor/bin/fastest "./vendor/bin/simple-phpunit -c phpunit.xml.dist {};"
На сайте symfony описан запуск phpunit-bridge как
cd my-project/
./vendor/bin/simple-phpunit
Если добавить это
export APP_ENV=dev && composer install && ./vendor/bin/simple-phpunit && make phpunit
то ошибка уходит.
Разработчик доработал:
./vendor/bin/simple-phpunit --testsuite nothing && find tests/ -name "*Test.php" | ./vendor/bin/fastest "./vendor/bin/simple-phpunit -c phpunit.xml.dist {};"
Комментариев нет:
Отправить комментарий