From 3df9ee972367028daccf6f11d8937e01fa40cf24 Mon Sep 17 00:00:00 2001 From: Henrik Hodne Date: Tue, 28 May 2013 14:33:28 +0200 Subject: [PATCH] Fix the CI script The [ function doesn't support "&&" (you need [[ for that). Also added an echo statement to inform that no tests were run if no if statements matched. --- script/ci | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/ci b/script/ci index 2a61a5e0..9c3f3dc5 100755 --- a/script/ci +++ b/script/ci @@ -6,10 +6,12 @@ elif [ "$TEST_SUITE" == "phantomjs" ]; then bundle exec rackup -s puma -p 5000 -D sleep 3 ./run_jasmine.coffee http://localhost:5000/spec.html -elif [ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TEST_SUITE" == "saucelabs" ]; then +elif [ "$TRAVIS_SECURE_ENV_VARS" == "true" -a "$TEST_SUITE" == "saucelabs" ]; then bundle exec rackup -s puma -p 5000 -D sleep 3 curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash gem install selenium-webdriver ruby script/saucelabs.rb +else + echo "Not running any tests" fi