mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
try browserstack
This commit is contained in:
parent
5cc155940a
commit
1cd0dc86dc
3 changed files with 13 additions and 43 deletions
|
@ -16,21 +16,13 @@ async function runTest(testSettings){
|
|||
'browserName': testSettings.browserName,
|
||||
'platformName': testSettings.platformName,
|
||||
'browserVersion': testSettings.browserVersion,
|
||||
'sauce:options': {
|
||||
'username': process.env.SAUCE_USERNAME,
|
||||
'accessKey': process.env.SAUCE_ACCESS_KEY,
|
||||
'build': process.env.GIT_HASH,
|
||||
'extendedDebugging': true, // when possible, enables network.har file and network tab
|
||||
'capturePerformance': true, // when possible, enables various performance related metrics
|
||||
'tunnelIdentifier': process.env.TRAVIS_JOB_NUMBER,
|
||||
'name': name,
|
||||
/* As a best practice, set important test metadata and execution options
|
||||
such as build info, tags for reporting, and timeout durations.
|
||||
*/
|
||||
'maxDuration': 180,
|
||||
'idleTimeout': 1000
|
||||
}
|
||||
}).usingServer("https://ondemand.saucelabs.com/wd/hub").build();
|
||||
'browserstack.local': true,
|
||||
'browserstack.localIdentifier': process.env.BROWSERSTACK_LOCAL_IDENTIFIER,
|
||||
'build': process.env.GIT_HASH,
|
||||
//'extendedDebugging': true, // when possible, enables network.har file and network tab
|
||||
//'capturePerformance': true, // when possible, enables various performance related metrics
|
||||
'name': name,
|
||||
}).usingServer("https://hub-cloud.browserstack.com/wd/hub").build();
|
||||
let session = await driver.getSession();
|
||||
session = session.id_;
|
||||
console.log(`https://saucelabs.com/jobs/${session}`);
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
# download and unzip the sauce connector
|
||||
#
|
||||
# ACHTUNG: as of 2019-12-21, downloading sc-latest-linux.tar.gz does not work.
|
||||
# It is necessary to explicitly download a specific version, for
|
||||
# example https://saucelabs.com/downloads/sc-4.5.4-linux.tar.gz
|
||||
# Supported versions are currently listed at:
|
||||
# https://wiki.saucelabs.com/display/DOCS/Downloading+Sauce+Connect+Proxy
|
||||
if [ -z "${SAUCE_USERNAME}" ]; then echo "SAUCE_USERNAME is unset - exiting"; exit 1; fi
|
||||
if [ -z "${SAUCE_ACCESS_KEY}" ]; then echo "SAUCE_ACCESS_KEY is unset - exiting"; exit 1; fi
|
||||
|
||||
curl https://saucelabs.com/downloads/sc-4.6.2-linux.tar.gz > /tmp/sauce.tar.gz
|
||||
tar zxf /tmp/sauce.tar.gz --directory /tmp
|
||||
mv /tmp/sc-*-linux /tmp/sauce_connect
|
||||
|
||||
# start the sauce connector in background and make sure it doesn't output the secret key
|
||||
(/tmp/sauce_connect/bin/sc --user "${SAUCE_USERNAME}" --key "${SAUCE_ACCESS_KEY}" -i "${TRAVIS_JOB_NUMBER}" --pidfile /tmp/sauce.pid --readyfile /tmp/tunnel > /dev/null )&
|
||||
|
||||
# wait for the tunnel to build up
|
||||
while [ ! -e "/tmp/tunnel" ]
|
||||
do
|
||||
sleep 1
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue