add mounts for running locally with the latest code

parent ae8f7372
......@@ -17,8 +17,15 @@ trap "kill_selenium" EXIT
function run_tests() {
run_selenium
docker build -t enough_ci:latest ./
docker run --rm -e TRAVIS=true enough_ci:latest /opt/vendor/bin/phpunit --bootstrap /opt/core/tests/bootstrap.php --fail-on-warning --configuration phpunit.xml
docker run --link enough_selenium:selenium --rm enough_ci:latest /opt/vendor/bin/phpunit --bootstrap /opt/core/tests/bootstrap.php --fail-on-warning --configuration phpunit.integration.xml
if ! test "$GITLAB_CI" ; then
DOCKER_ARGS="-v $(pwd):/opt/core/apps/enough"
PHPUNIT_ARGS="--coverage-html=html"
fi
docker run --rm -e TRAVIS=true $DOCKER_ARGS enough_ci:latest /opt/vendor/bin/phpunit $PHPUNIT_ARGS --bootstrap /opt/core/tests/bootstrap.php --fail-on-warning --configuration phpunit.xml
if ! test "$GITLAB_CI" ; then
firefox html/index.html
fi
docker run --link enough_selenium:selenium --rm $DOCKER_ARGS enough_ci:latest /opt/vendor/bin/phpunit --bootstrap /opt/core/tests/bootstrap.php --fail-on-warning --configuration phpunit.integration.xml
}
run_tests
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment