Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2020-05-25 00:13:09 +0300
committerWilliam Desportes <williamdes@wdes.fr>2020-06-10 02:27:22 +0300
commit4de5bcb2a7d65ee9e12d14b50b4750dbec40634f (patch)
treea9854a73f215ad18ca6109b636464009eca9b8d8 /test/start-local-server
parent28dc4088130cf10d021eefd163ad534ef756fe88 (diff)
Support selenium-standalone mode and use docker
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/start-local-server')
-rwxr-xr-xtest/start-local-server21
1 files changed, 20 insertions, 1 deletions
diff --git a/test/start-local-server b/test/start-local-server
index 31482a885d..6a09c29d3a 100755
--- a/test/start-local-server
+++ b/test/start-local-server
@@ -10,6 +10,7 @@ set -e
set -x
if [ "$CI_MODE" != "selenium" ] ; then
+ echo "Not in CI_MODE=selenium"
exit 0
fi
@@ -20,7 +21,7 @@ PHP_VERSION=$(phpenv version-name)
# Create configuration with correct paths
cp test/nginx.conf test/php-fpm.conf test/php.ini $DIR/
-sed -i -e "s@%DIR%@$DIR@" -e "s@%ROOT%@$CURRENT@" $DIR/*
+sed -i -e "s,%DIR%,$DIR," -e "s,%ROOT%,$CURRENT," $DIR/*
mkdir $DIR/sessions
# Start servers
@@ -28,6 +29,24 @@ $HOME/.phpenv/versions/$PHP_VERSION/sbin/php-fpm --fpm-config $DIR/php-fpm.conf
nginx -c $DIR/nginx.conf
if [ ! -z "$TESTSUITE_BROWSERSTACK_KEY" ] ; then
+ echo "Using: BrowserStack"
+ # Install if necessary
+ if [ ! -f ~/browserstack/BrowserStackLocal ] ; then
+ mkdir -p ~/browserstack
+ cd ~/browserstack
+ wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip
+ unzip BrowserStackLocal-linux-x64.zip
+ fi
# Start BrowserStack Local forwarder
~/browserstack/BrowserStackLocal --force-local --localIdentifier "travis-$TRAVIS_JOB_NUMBER" --onlyAutomate --key "$TESTSUITE_BROWSERSTACK_KEY" --daemon start
+elif [ -z "$SKIP_STANDALONE" ] ; then
+ echo "Using: selenium-standalone"
+ if [ ! -f selenium-standalone ]; then
+ yarn global add selenium-standalone
+ selenium-standalone install
+ fi
+ selenium-standalone start -- -debug > ~/selenium-standalone.logs~ 2>&1 &
+ echo $! > ~/selenium-standalone.pid~
+else
+ echo "Using: nothing."
fi