Try to have a smarter Sauce test.
This commit is contained in:
parent
9dff0ec16d
commit
e7dc302727
|
@ -11,7 +11,7 @@ script:
|
||||||
- jshint --verbose --show-non-errors util.js
|
- jshint --verbose --show-non-errors util.js
|
||||||
- php test/coverage-checker.php clover.xml 45
|
- php test/coverage-checker.php clover.xml 45
|
||||||
after_success:
|
after_success:
|
||||||
- curl -s https://raw.github.com/jlipps/sausage-bun/master/givememysausage.php | php
|
- test/prepareSauceTest.sh
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- SAUCE_USERNAME=seblucas
|
- SAUCE_USERNAME=seblucas
|
||||||
|
|
13
test/prepareSauceTest.sh
Normal file
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
|
Loading…
Reference in a new issue