Skip to content

Commit

Permalink
Make start-local-server not depend on BrowserStack and improve loggin…
Browse files Browse the repository at this point in the history
…g of nginx server

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed May 13, 2020
1 parent c5d4469 commit ee2a49e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions test/nginx.conf
Expand Up @@ -49,6 +49,8 @@ http {
access_log off;

server {
access_log %ROOT%/nginx-access.log;
error_log %ROOT%/nginx-error.log error;
listen 8000 default_server;
server_name _;

Expand Down
8 changes: 5 additions & 3 deletions test/start-local-server
Expand Up @@ -9,7 +9,7 @@ fi
set -e
set -x

if [ "$CI_MODE" != "selenium" -o -z "$TESTSUITE_BROWSERSTACK_KEY" ] ; then
if [ "$CI_MODE" != "selenium" ] ; then
exit 0
fi

Expand All @@ -27,5 +27,7 @@ mkdir $DIR/sessions
$HOME/.phpenv/versions/$PHP_VERSION/sbin/php-fpm --fpm-config $DIR/php-fpm.conf -c $DIR/php.ini
nginx -c $DIR/nginx.conf

# Start BrowserStack Local forwarder
~/browserstack/BrowserStackLocal --force-local --localIdentifier "travis-$TRAVIS_JOB_NUMBER" --onlyAutomate --key "$TESTSUITE_BROWSERSTACK_KEY" --daemon start
if [ ! -z "$TESTSUITE_BROWSERSTACK_KEY" ] ; then
# Start BrowserStack Local forwarder
~/browserstack/BrowserStackLocal --force-local --localIdentifier "travis-$TRAVIS_JOB_NUMBER" --onlyAutomate --key "$TESTSUITE_BROWSERSTACK_KEY" --daemon start
fi

0 comments on commit ee2a49e

Please sign in to comment.