42 lines
909 B
YAML
42 lines
909 B
YAML
language: php
|
|
|
|
php:
|
|
- 7.1
|
|
- 7.2
|
|
|
|
env:
|
|
global:
|
|
- setup=stable
|
|
- laravel=5.x
|
|
- testbench=3.x
|
|
|
|
matrix:
|
|
include:
|
|
- php: 7.1
|
|
env: setup=lowest
|
|
- php: 7.1
|
|
env:
|
|
- laravel=5.6.x
|
|
- testbench=3.6.x
|
|
- php: 7.1
|
|
env:
|
|
- laravel=5.7.x
|
|
- testbench=3.7.x
|
|
|
|
sudo: false
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
install:
|
|
- composer require illuminate/support:${laravel} --no-update
|
|
- composer require laravel/framework:${laravel} --no-update
|
|
- composer require orchestra/testbench:${testbench} --no-update
|
|
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
|
|
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
|
|
|
|
script:
|
|
- vendor/bin/phpunit
|
|
- vendor/bin/phpcs --standard=psr2 src/
|