Skip to content
Snippets Groups Projects
Commit db0a8aa7 authored by Thomas Müller's avatar Thomas Müller
Browse files

Use fixed port for now

parent 925aa6c0
No related branches found
No related tags found
No related merge requests found
......@@ -3,16 +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))
#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 BEHAT_PARAMS="context[parameters][base_url]=http://localhost:$PORT/ocs"
vendor/bin/behat
kill $PHPPID
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment