From 268565882de7fa1d8532f9e9d7c8cd610af20bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 30 Nov 2013 16:56:37 +0100 Subject: [PATCH] Add a test to avoid testing on Sauce when the API KEY is not here ... (Pull request). --- test/prepareSauceTest.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/prepareSauceTest.sh b/test/prepareSauceTest.sh index 1b06ec9..7b6a71b 100644 --- a/test/prepareSauceTest.sh +++ b/test/prepareSauceTest.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +if [[ -z $SAUCE_API_KEY ]] + then + echo "No Sauce Api Key (Pull request)" + exit +fi + PHP_VERSION=`php -v|grep --only-matching --perl-regexp "PHP 5\.\\d+"` echo $PHP_VERSION