From f60017437d18c7c4ba68acdf0ac8e7bbe083d6d6 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 26 Jan 2018 09:49:28 -0500 Subject: [PATCH] support running browser tests in osx --- ci/browser_tests.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ci/browser_tests.sh b/ci/browser_tests.sh index 5b4c27ce40a..fa682516d2b 100755 --- a/ci/browser_tests.sh +++ b/ci/browser_tests.sh @@ -18,8 +18,16 @@ setupRemixd () { cd .. } -SC_VERSION="4.4.0" -SAUCECONNECT_URL="https://saucelabs.com/downloads/sc-$SC_VERSION-linux.tar.gz" +if test $(uname -s) = "Darwin" +then + OS="osx" + FILEFORMAT="zip" +else + OS="linux" + FILEFORMAT="tar.gz" +fi +SC_VERSION="4.4.11" +SAUCECONNECT_URL="https://saucelabs.com/downloads/sc-$SC_VERSION-$OS.$FILEFORMAT" SAUCECONNECT_USERNAME="chriseth" SAUCECONNECT_ACCESSKEY="b781828a-9e9c-43d8-89d4-2fbb879595ca" SAUCECONNECT_JOBIDENTIFIER="browsersolidity_tests_${TRAVIS_JOB_NUMBER}" @@ -31,8 +39,8 @@ npm run serve & setupRemixd wget "$SAUCECONNECT_URL" -tar -zxvf sc-"$SC_VERSION"-linux.tar.gz -./sc-"$SC_VERSION"-linux/bin/sc -u "$SAUCECONNECT_USERNAME" -k "$SAUCECONNECT_ACCESSKEY" -i "$SAUCECONNECT_JOBIDENTIFIER" --no-ssl-bump-domains all --readyfile "$SAUCECONNECT_READYFILE" & +tar -zxvf sc-"$SC_VERSION"-"$OS"."$FILEFORMAT" +./sc-"$SC_VERSION"-"$OS"/bin/sc -u "$SAUCECONNECT_USERNAME" -k "$SAUCECONNECT_ACCESSKEY" -i "$SAUCECONNECT_JOBIDENTIFIER" --no-ssl-bump-domains all --readyfile "$SAUCECONNECT_READYFILE" & while [ ! -f "$SAUCECONNECT_READYFILE" ]; do sleep .5 done