Try to have a smarter Sauce test.

This commit is contained in:
Sébastien Lucas 2013-11-28 09:44:17 +01:00
parent 9dff0ec16d
commit e7dc302727
2 changed files with 14 additions and 1 deletions

View file

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