Skip to content

Commit bc0cccf

Browse files
authored
Merge pull request #12 from cesargb/travis
Update travis
2 parents c9b178f + de9f94d commit bc0cccf

File tree

2 files changed

+42
-13
lines changed

2 files changed

+42
-13
lines changed

.travis.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,44 @@
11
language: php
22

3-
php:
4-
- 7.2
5-
- 7.3
6-
- 7.4
3+
matrix:
4+
include:
5+
- php: '7.2'
6+
env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable'
7+
- php: '7.2'
8+
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest'
9+
- php: '7.2'
10+
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable'
11+
- php: '7.2'
12+
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest'
13+
- php: '7.2'
14+
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable'
15+
- php: '7.3'
16+
env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable'
17+
- php: '7.3'
18+
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest'
19+
- php: '7.3'
20+
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable'
21+
- php: '7.3'
22+
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest'
23+
- php: '7.3'
24+
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable'
25+
- php: '7.4'
26+
env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable'
27+
- php: '7.4'
28+
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable'
29+
- php: '7.4'
30+
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable'
731

832
before_script:
933
- travis_retry composer self-update
1034
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
1135

36+
install:
37+
- composer require "illuminate/config:${LARAVEL}" --no-interaction --no-update
38+
- composer require "illuminate/console:${LARAVEL}" --no-interaction --no-update
39+
- composer require "illuminate/log:${LARAVEL}" --no-interaction --no-update
40+
- composer require "illuminate/support:${LARAVEL}" --no-interaction --no-update
41+
- composer require "orchestra/testbench:${ORCHESTRA}" --no-interaction --no-update
42+
1243
script:
1344
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

composer.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,15 @@
1919
"license": "MIT",
2020
"require": {
2121
"php" : "^7.2",
22-
"illuminate/config": "~5.5.28| ^6.0| ^7.0",
23-
"illuminate/console": "~5.5.28| ^6.0| ^7.0",
24-
"illuminate/log": "~5.5.28| ^6.0| ^7.0",
25-
"illuminate/support": "~5.5.28| ^6.0| ^7.0",
26-
"monolog/monolog": "~1.20|^2.0"
22+
"illuminate/config": "~5.5.28| ^6.0 | ^7.0",
23+
"illuminate/console": "~5.5.28| ^6.0 | ^7.0",
24+
"illuminate/log": "~5.5.28| ^6.0 | ^7.0",
25+
"illuminate/support": "~5.5.28| ^6.0 | ^7.0",
26+
"monolog/monolog": "~1.20 | ^2.0"
2727
},
2828
"require-dev": {
2929
"orchestra/testbench": "^3.5 | ^4.0 | ^5.0",
30-
"phpunit/phpunit": "^8.0",
31-
"phpstan/phpstan": "^0.11.8"
30+
"phpunit/phpunit": "^6.0 | ^7.0 | ^8.0"
3231
},
3332
"autoload": {
3433
"psr-4": {
@@ -41,8 +40,7 @@
4140
}
4241
},
4342
"scripts": {
44-
"test": "vendor/bin/phpunit --colors=always",
45-
"stan": "vendor/bin/phpstan analyse src tests --no-progress -l 0"
43+
"test": "vendor/bin/phpunit --colors=always"
4644
},
4745
"extra": {
4846
"laravel": {

0 commit comments

Comments
 (0)