Skip to content

Commit

Permalink
Updated Travis scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Dec 2, 2014
1 parent a7ed14c commit e2dbb20
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
@@ -1,13 +1,11 @@
language: php
php:
- 5.6
- 5.5
- 5.4
- hhvm
matrix:
fast_finish: true
include:
- php: 5.6
env: COVERAGE=1
before_script:
- ./scripts/travis/setup.sh
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php -i; fi"
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/installComposer.sh
Expand Up @@ -5,7 +5,7 @@ cd ../..

composer install --dev --no-interaction

if [ -n "$COVERAGE" ]
if [ "$TRAVIS_PHP_VERSION" = "5.6" ]
then
composer require --dev -q --no-interaction "satooshi/php-coveralls:*"
fi
2 changes: 1 addition & 1 deletion scripts/travis/run-tests.sh
Expand Up @@ -3,7 +3,7 @@
cd $(dirname "$0")
cd ../..

if [ -n "$COVERAGE" ]
if [ "$TRAVIS_PHP_VERSION" = "5.6" ]
then
phpunit --coverage-clover /tmp/clover.xml
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/travis/setup.sh
Expand Up @@ -5,7 +5,7 @@ cd $(dirname "$0")
echo "Installing Composer"
./installComposer.sh

if [ -n "$COVERAGE" ]
if [ "$TRAVIS_PHP_VERSION" = "5.6" ]
then
echo "Installing Scrutinizer"
./installScrutinizer.sh
Expand Down

0 comments on commit e2dbb20

Please sign in to comment.