Merge pull request #51 from yann300/browserTests

check tests exit code
pull/7/head
yann300 9 years ago committed by GitHub
commit d4226f09ef
  1. 16
      ci/browser_tests.sh

@ -18,18 +18,26 @@ 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
if [ $? -eq 1 ]
then
TEST_EXITCODE=1
fi
node ci/sauceDisconnect.js $SAUCECONNECT_USERNAME $SAUCECONNECT_ACCESSKEY $SAUCECONNECT_JOBIDENTIFIER
echo $TEST_EXITCODE
if [ $TEST_EXITCODE -eq 1 ]
then
exit 1

Loading…
Cancel
Save