Skip to content

Commit

Permalink
adds version constraint for coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
sndsgd committed Jan 9, 2015
1 parent fb44cd7 commit 22b67be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: php

env:
- COVERALLS_PHP_VERSION="5.5"

php:
- 5.4
- 5.5
Expand All @@ -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
7 changes: 7 additions & 0 deletions tests/bin/coveralls
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 22b67be

Please sign in to comment.