Skip to content

Commit

Permalink
Add fixes for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
francescomalatesta committed Dec 17, 2016
1 parent c5d45eb commit e93715c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Expand Up @@ -3,8 +3,12 @@ language: php
php:
- 5.6
- 7.0
- 7.1
- hhvm

services:
sqlite:
adapter: sqlite3
database: ":memory:"
timeout: 500

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
Expand All @@ -15,17 +19,11 @@ cache:
directories:
- $HOME/.composer/cache

matrix:
include:
- php: 5.6
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist

script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -15,7 +15,8 @@
],
"require": {
"php" : "~5.6|~7.0",
"illuminate/database": "~5.1"
"illuminate/database": "~5.1",
"illuminate/support": "~5.1"
},
"require-dev": {
"phpunit/phpunit" : "~4.0||~5.0",
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Expand Up @@ -22,6 +22,7 @@
<directory suffix=".php">src/</directory>
<exclude>
<directory suffix=".php">src/Facade</directory>
<directory suffix=".php">src/Featurable</directory>
<directory suffix=".php">src/Provider</directory>
</exclude>
</whitelist>
Expand Down

0 comments on commit e93715c

Please sign in to comment.