Skip to content

Commit 70cd20b

Browse files
committed
Properly run the validation test suite in CI
1 parent b07595b commit 70cd20b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/run_tests_dockerized.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ PHP_VERSION=$1
1414

1515
DOCKER_IMAGE="tolerant-php-parser-test-runner:$PHP_VERSION"
1616
docker build --build-arg="PHP_VERSION=$PHP_VERSION" --tag="$DOCKER_IMAGE" -f ci/Dockerfile .
17-
docker run --rm $DOCKER_IMAGE ci/run_tests.sh
17+
# Run all of the phpunit test suites in CI.
18+
# - Add the validation folder as a read-only volume for running "phpunit --testsuite validation"
19+
# (This is around 180MB, so it is not added to the docker image)
20+
docker run --volume="$PWD/validation:/tolerant-php-parser/validation:ro" --rm $DOCKER_IMAGE ci/run_tests.sh

0 commit comments

Comments
 (0)