2015-08-06 16:44:24 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
composer install
|
|
|
|
|
|
|
|
# TODO: avoid port collision on jenkins - use $EXECUTOR_NUMBER
|
2015-09-29 14:56:56 +03:00
|
|
|
if [ -z "$EXECUTOR_NUMBER" ]; then
|
|
|
|
EXECUTOR_NUMBER=0
|
|
|
|
fi
|
|
|
|
PORT=$((8080 + $EXECUTOR_NUMBER))
|
|
|
|
#PORT=8080
|
2015-08-06 16:44:24 +03:00
|
|
|
echo $PORT
|
|
|
|
php -S localhost:$PORT -t ../.. &
|
|
|
|
PHPPID=$!
|
|
|
|
echo $PHPPID
|
|
|
|
|
2015-09-29 14:56:56 +03:00
|
|
|
export TEST_SERVER_URL="http://localhost:$PORT/ocs/"
|
2015-10-29 17:13:29 +03:00
|
|
|
vendor/bin/behat -f junit -f pretty
|
2015-08-06 16:44:24 +03:00
|
|
|
|
|
|
|
kill $PHPPID
|