Skip to content

Commit

Permalink
run CI on all laravel and PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tacone committed Sep 27, 2015
1 parent e29de75 commit 06699a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ language: php
php:
- 5.6
- 5.5
- 7.0
- hhvm

env:
- LARAVEL=4.2
- LARAVEL=5.0
- LARAVEL=5.1
- LARAVEL=dev-master

install:
- php scripts/test-with-laravel.php
- php scripts/test-with-laravel.php $LARAVEL
- composer require satooshi/php-coveralls:~0.6@stable

before_script:
Expand All @@ -18,4 +25,4 @@ script:
- phpunit --coverage-clover build/logs/clover.xml

after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;'
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then php vendor/bin/coveralls -v; fi;'
7 changes: 5 additions & 2 deletions scripts/test-with-laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@
}

echo PHP_EOL;
echo "Install a new Laravel: ".PHP_EOL;
passthru("php composer.phar create-project laravel/laravel $dir");

$laravelVersion = !empty($argv[1])? ' '.$argv[1]:'';

echo "Install a new Laravel$laravelVersion: ".PHP_EOL;
passthru("php composer.phar create-project laravel/laravel $dir$laravelVersion");

// change dir to laravel and suck the deps
chdir($dir);
Expand Down

0 comments on commit 06699a9

Please sign in to comment.