4 if [ -n "$GATEWAY_INTERFACE" ] ; then
5 echo 'Can not invoke as CGI!'
12 if [ "$CI_MODE" != "selenium" -o -z "$TESTSUITE_BROWSERSTACK_KEY" ] ; then
16 # Start php-fpm + nginx in temporary dir
19 PHP_VERSION
=$
(phpenv version-name
)
21 # Create configuration with correct paths
22 cp test
/nginx.conf test
/php-fpm.conf test
/php.ini
$DIR/
23 sed -i -e "s@%DIR%@$DIR@" -e "s@%ROOT%@$CURRENT@" $DIR/*
27 $HOME/.phpenv
/versions
/$PHP_VERSION/sbin
/php-fpm
--fpm-config $DIR/php-fpm.conf
-c $DIR/php.ini
28 nginx
-c $DIR/nginx.conf
30 # Start BrowserStack Local forwarder
31 ~
/browserstack
/BrowserStackLocal
-localIdentifier "travis-$TRAVIS_JOB_NUMBER" -onlyAutomate "$TESTSUITE_BROWSERSTACK_KEY" 127.0.0.1,8000,0 &