Use fixed port for now
This commit is contained in:
parent
925aa6c0f5
commit
db0a8aa795
1 changed files with 6 additions and 5 deletions
|
@ -3,16 +3,17 @@
|
||||||
composer install
|
composer install
|
||||||
|
|
||||||
# TODO: avoid port collision on jenkins - use $EXECUTOR_NUMBER
|
# TODO: avoid port collision on jenkins - use $EXECUTOR_NUMBER
|
||||||
if [ -z "$EXECUTOR_NUMBER" ]; then
|
#if [ -z "$EXECUTOR_NUMBER" ]; then
|
||||||
EXECUTOR_NUMBER=0
|
# EXECUTOR_NUMBER=0
|
||||||
fi
|
#fi
|
||||||
PORT=$((8080 + $EXECUTOR_NUMBER))
|
#PORT=$((8080 + $EXECUTOR_NUMBER))
|
||||||
|
PORT=8080
|
||||||
echo $PORT
|
echo $PORT
|
||||||
php -S localhost:$PORT -t ../.. &
|
php -S localhost:$PORT -t ../.. &
|
||||||
PHPPID=$!
|
PHPPID=$!
|
||||||
echo $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
|
vendor/bin/behat
|
||||||
|
|
||||||
kill $PHPPID
|
kill $PHPPID
|
||||||
|
|
Loading…
Reference in a new issue