Skip to content

Commit 6f40ed5

Browse files
author
Sefa Ilkimen
committed
skip Saucelabs tests on PRs, because secret ENV vars are not supported currently for PRs
1 parent 8b09e15 commit 6f40ed5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

scripts/test-app.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ set -e
33

44
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
55

6+
if [ $CI == "true" ] && ([ -z $SAUCE_USERNAME ] || [ -z $SAUCE_ACCESS_KEY ]); then
7+
echo "Skipping CI tests, because Saucelabs credentials are not set.";
8+
exit 0;
9+
fi
10+
611
pushd $ROOT
712
./node_modules/.bin/mocha ./test/app-mocha-specs/test.js "$@"
813
popd

scripts/upload-artifact.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ PLATFORM=$([[ "${@#--android}" = "$@" ]] && echo "ios" || echo "android")
55
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
66
TEMP=$ROOT/temp
77

8+
if [ -z $SAUCE_USERNAME ] || [ -z $SAUCE_ACCESS_KEY ]; then
9+
echo "Skipping uploading artifact, because Saucelabs credentials are not set.";
10+
exit 0;
11+
fi
12+
813
if [ $PLATFORM = "android" ]; then
914
curl -u $SAUCE_USERNAME:$SAUCE_ACCESS_KEY \
1015
-X POST \

0 commit comments

Comments
 (0)