File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) " /..
5
5
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
+
6
11
pushd $ROOT
7
12
./node_modules/.bin/mocha ./test/app-mocha-specs/test.js " $@ "
8
13
popd
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ PLATFORM=$([[ "${@#--android}" = "$@" ]] && echo "ios" || echo "android")
5
5
ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) " /..
6
6
TEMP=$ROOT /temp
7
7
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
+
8
13
if [ $PLATFORM = " android" ]; then
9
14
curl -u $SAUCE_USERNAME :$SAUCE_ACCESS_KEY \
10
15
-X POST \
You can’t perform that action at this time.
0 commit comments