We want to run PHPUnit inside the docker container. But the metadata is not created. It seems the problem is, that the created metadata of the tests is stored at the given path $CIRCLE_TEST_REPORTS/phpunit/junit.xml inside the container and therefore is not found.
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
- docker run -it $DOCKER_REPOSITORY:$DOCKER_TAG php vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml
Is there a way to store the metadata outside the container?