From 22b67be7635851deb9e0f8a8fc738f5def626688 Mon Sep 17 00:00:00 2001 From: Russell Date: Fri, 9 Jan 2015 17:16:03 -0500 Subject: [PATCH] adds version constraint for coveralls --- .travis.yml | 6 ++++-- tests/bin/coveralls | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 tests/bin/coveralls diff --git a/.travis.yml b/.travis.yml index aeb269b..a4596c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: php +env: + - COVERALLS_PHP_VERSION="5.5" + php: - 5.4 - 5.5 @@ -17,10 +20,9 @@ before_install: install: - composer install --no-interaction --prefer-source --dev - - composer require satooshi/php-coveralls:dev-master script: - phpunit --coverage-clover tests/coverage-clover.xml after_script: - - vendor/bin/coveralls -v + - tests/bin/coveralls diff --git a/tests/bin/coveralls b/tests/bin/coveralls new file mode 100755 index 0000000..9c08975 --- /dev/null +++ b/tests/bin/coveralls @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "${COVERALLS_PHP_VERSION}" = "$(phpenv version-name)" ]; then + composer require satooshi/php-coveralls:dev-master + vendor/bin/coveralls -v +fi +