[ticket/305] Only run coveralls on PHP 5.5 and mysqli

B3P-305
This commit is contained in:
Marc Alexander
2014-07-13 00:00:24 +02:00
parent b9d0236793
commit fc65161989
2 changed files with 18 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ script:
- ../board3/Board3-Portal/travis/run-testsuite.sh $DB $TRAVIS_PHP_VERSION
after_script:
- php ../board3/Board3-Portal/vendor/bin/coveralls -v
- sh -c "if [ '$COVERALLS' != '0' ]; then ../board3/Board3-Portal/travis/run-coveralls.sh $DB $TRAVIS_PHP_VERSION; fi"
notifications:
email:

17
travis/run-coveralls.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
#
# This file is part of the Board3 Portal package.
#
# @copyright (c) Board3 Group <http://www.board3.de>
# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
#
set -e
set -x
DB=$1
TRAVIS_PHP_VERSION=$2
if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysqli" ]
then
php ../board3/Board3-Portal/vendor/bin/coveralls -v
fi