diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-29 13:56:56 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-29 13:56:56 +0200 |
commit | e3a98e4959c36432b1e8250afc03708e10a32cca (patch) | |
tree | 352ae2a01152ac107321a2bc6b85525cdff302f9 /build/integration/run.sh | |
parent | 2d1f509acf6bab68d4b1f092a0f4b8fc8da5e125 (diff) | |
download | nextcloud-server-e3a98e4959c36432b1e8250afc03708e10a32cca.tar.gz nextcloud-server-e3a98e4959c36432b1e8250afc03708e10a32cca.zip |
Support different server ports - defined by EXECUTOR_NUMBER
Diffstat (limited to 'build/integration/run.sh')
-rwxr-xr-x | build/integration/run.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build/integration/run.sh b/build/integration/run.sh index df33d85fc74..08f10b86c5f 100755 --- a/build/integration/run.sh +++ b/build/integration/run.sh @@ -3,17 +3,17 @@ composer install # TODO: avoid port collision on jenkins - use $EXECUTOR_NUMBER -#if [ -z "$EXECUTOR_NUMBER" ]; then -# EXECUTOR_NUMBER=0 -#fi -#PORT=$((8080 + $EXECUTOR_NUMBER)) -PORT=8080 +if [ -z "$EXECUTOR_NUMBER" ]; then + EXECUTOR_NUMBER=0 +fi +PORT=$((8080 + $EXECUTOR_NUMBER)) +#PORT=8080 echo $PORT php -S localhost:$PORT -t ../.. & PHPPID=$! echo $PHPPID -#export BEHAT_PARAMS="context[parameters][base_url]=http://localhost:$PORT/ocs" +export TEST_SERVER_URL="http://localhost:$PORT/ocs/" vendor/bin/behat --profile ci kill $PHPPID |