Skip to content

Commit

Permalink
Merge remote-tracking branch 'pascalbaljet/php-8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
MarceauKa committed Nov 11, 2020
2 parents b88bfe5 + f26239a commit 2fe9c51
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 4,375 deletions.
69 changes: 63 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,64 @@
language: php
php:
- 7.4
- 7.3
- 7.2
before_script: composer install
script: vendor/bin/phpunit -c phpunit.xml

cache:
directories:
- $HOME/.composer/cache

matrix:
include:
- php: 7.2
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.2
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.3
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.3
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.4
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.4
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable'
- php: 8.0snapshot
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 8.0snapshot
env: LARAVEL='6.*' TESTBENCH='4.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.2
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.2
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.3
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.3
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.4
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.4
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-stable'
- php: 8.0snapshot
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 8.0snapshot
env: LARAVEL='7.*' TESTBENCH='5.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.3
env: LARAVEL='8.*' TESTBENCH='6.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.3
env: LARAVEL='8.*' TESTBENCH='6.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.4
env: LARAVEL='8.*' TESTBENCH='6.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.4
env: LARAVEL='8.*' TESTBENCH='6.*' COMPOSER_FLAGS='--prefer-stable'
- php: 8.0snapshot
env: LARAVEL='8.*' TESTBENCH='6.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 8.0snapshot
env: LARAVEL='8.*' TESTBENCH='6.*' COMPOSER_FLAGS='--prefer-stable'
fast_finish: true

before_install:
- composer config discard-changes true
- travis_retry composer self-update
- travis_retry composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update

install:
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction --no-suggest

script:
- vendor/bin/phpunit
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
"laravel-plugin"
],
"require": {
"php": ">=7.2",
"php": "^7.2 | ^8.0",
"laravel/framework": "^6.0 | ^7.0 | ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5 | ^8.0",
"orchestra/testbench": "^4.0 | ^5.0",
"orchestra/database": "^4.0 | ^5.0",
"symfony/mime": ">=4.3.8",
"symfony/http-foundation": ">=4.3.8"
"phpunit/phpunit": "^7.5 | ^8.0 | ^9.0",
"mockery/mockery": "^1.3.3",
"orchestra/testbench": "^4.0 | ^5.0 | ^6.0",
"orchestra/database": "^4.0 | ^5.0 | ^6.0"
},
"license": "MIT",
"authors": [
Expand Down Expand Up @@ -53,4 +52,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
Loading

0 comments on commit 2fe9c51

Please sign in to comment.