From 631303c1e74cb10a63fa46f99e3111067ec2f010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 6 Aug 2015 15:44:24 +0200 Subject: First integration tests for provisioning api --- build/integration/run.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 build/integration/run.sh (limited to 'build/integration/run.sh') 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 -- cgit v1.2.3