-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
41 lines (34 loc) · 909 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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/