From e7dc3027271660e3f9670ee0f46c57208f54ab51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Thu, 28 Nov 2013 09:44:17 +0100 Subject: [PATCH] Try to have a smarter Sauce test. --- .travis.yml | 2 +- test/prepareSauceTest.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/prepareSauceTest.sh diff --git a/.travis.yml b/.travis.yml index c2d5cc6..2ff616b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ script: - jshint --verbose --show-non-errors util.js - php test/coverage-checker.php clover.xml 45 after_success: - - curl -s https://raw.github.com/jlipps/sausage-bun/master/givememysausage.php | php + - test/prepareSauceTest.sh env: global: - SAUCE_USERNAME=seblucas diff --git a/test/prepareSauceTest.sh b/test/prepareSauceTest.sh new file mode 100644 index 0000000..ba0d1ff --- /dev/null +++ b/test/prepareSauceTest.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +PHP_VERSION=`php -v|grep --only-matching --perl-regexp "5\.\\d+\"` + +if [[ $PHP_VERSION != "5.5" ]] + then + echo "Bad PHP version" + exit +fi + +echo "Good PHP version" + +curl -s https://raw.github.com/jlipps/sausage-bun/master/givememysausage.php | php \ No newline at end of file