aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/run.sh
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-06 15:44:24 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-29 13:42:32 +0200
commit631303c1e74cb10a63fa46f99e3111067ec2f010 (patch)
tree383173fb9cde008e119660488b8e44d248d7ab11 /build/integration/run.sh
parent580a961020fb8b7cbfc499b0808dfeca90039cdb (diff)
downloadnextcloud-server-631303c1e74cb10a63fa46f99e3111067ec2f010.tar.gz
nextcloud-server-631303c1e74cb10a63fa46f99e3111067ec2f010.zip
First integration tests for provisioning api
Diffstat (limited to 'build/integration/run.sh')
-rwxr-xr-xbuild/integration/run.sh18
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