Try to have a smarter Sauce test.

This commit is contained in:
Sébastien Lucas 2013-11-28 09:44:17 +01:00
джерело 9dff0ec16d
коміт e7dc302727
2 змінених файлів з 14 додано та 1 видалено

@ -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

13
test/prepareSauceTest.sh Normal file

@ -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