|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
#!/bin/bash |
|
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SAUCECONNECT_URL="http://saucelabs.com/downloads/sc-4.3.16-linux.tar.gz" |
|
|
|
|
SAUCECONNECT_URL="https://saucelabs.com/downloads/sc-4.3.16-linux.tar.gz" |
|
|
|
|
SAUCECONNECT_USERNAME="yann300" |
|
|
|
|
SAUCECONNECT_ACCESSKEY="e6f430f2-daa0-48bb-90fd-8bee20f429eb" |
|
|
|
|
SAUCECONNECT_JOBIDENTIFIER="remix_tests_${TRAVIS_JOB_NUMBER}" |
|
|
|
@ -18,22 +18,10 @@ while [ ! -f $SAUCECONNECT_READYFILE ]; do |
|
|
|
|
sleep .5 |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
function updateTestExitCode() { |
|
|
|
|
if [ $? -eq 1 ] |
|
|
|
|
then |
|
|
|
|
TEST_EXITCODE=1 |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
npm run nightwatch_remote_firefox |
|
|
|
|
updateTestExitCode |
|
|
|
|
npm run nightwatch_remote_chrome |
|
|
|
|
updateTestExitCode |
|
|
|
|
npm run nightwatch_remote_safari |
|
|
|
|
updateTestExitCode |
|
|
|
|
npm run nightwatch_remote_ie |
|
|
|
|
updateTestExitCode |
|
|
|
|
|
|
|
|
|
npm run nightwatch_remote_firefox || TEST_EXITCODE=1 |
|
|
|
|
npm run nightwatch_remote_chrome || TEST_EXITCODE=1 |
|
|
|
|
npm run nightwatch_remote_safari || TEST_EXITCODE=1 |
|
|
|
|
npm run nightwatch_remote_ie || TEST_EXITCODE=1 |
|
|
|
|
|
|
|
|
|
node ci/sauceDisconnect.js $SAUCECONNECT_USERNAME $SAUCECONNECT_ACCESSKEY $SAUCECONNECT_JOBIDENTIFIER |
|
|
|
|
|
|
|
|
|