diff options
Diffstat (limited to 'build/integration/run.sh')
-rwxr-xr-x | build/integration/run.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build/integration/run.sh b/build/integration/run.sh new file mode 100755 index 00000000000..40afbe85b9b --- /dev/null +++ b/build/integration/run.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +composer install + +# TODO: avoid port collision on jenkins - use $EXECUTOR_NUMBER +if [ -z "$EXECUTOR_NUMBER" ]; then + EXECUTOR_NUMBER=0 +fi +PORT=$((8080 + $EXECUTOR_NUMBER)) +echo $PORT +php -S localhost:$PORT -t ../.. & +PHPPID=$! +echo $PHPPID + +export BEHAT_PARAMS="context[parameters][base_url]=http://localhost:$PORT/ocs" +vendor/bin/behat + +kill $PHPPID |