Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Added Laravel 5.8 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim committed May 23, 2019
1 parent b1b673b commit 1457ade
Show file tree
Hide file tree
Showing 5 changed files with 808 additions and 401 deletions.
67 changes: 6 additions & 61 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,14 @@
language: php
sudo: false

php:
- 7.2
- 7.3

env:
global:
- setup=basic
- coverage=no
matrix:
- laravel=5.6.*
- laravel=5.7.*
- laravel=5.8.*
- laravel=dev-master
- setup=lowest laravel=5.6.*
- setup=lowest laravel=5.7.*
- setup=lowest laravel=5.8.*
- setup=lowest laravel=dev-master
- setup=stable laravel=5.6.*
- setup=stable laravel=5.7.*
- setup=stable laravel=5.8.*
- setup=stable laravel=dev-master

before_install:
- composer config discard-changes true

before_script:
- composer require "laravel/framework=${laravel}" --prefer-dist --no-interaction --no-suggest
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-lowest --prefer-stable; fi
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "php-coveralls/php-coveralls=^2.1" --prefer-dist --no-interaction --no-suggest --dev; fi
- travis_retry composer install --prefer-dist --no-interaction

script:
- if [[ $coverage = 'yes' ]]; then vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi
- if [[ $coverage = 'no' ]]; then vendor/bin/phpunit -c phpunit.xml; fi
cache:
directories:
- vendor

after_script:
- if [[ $setup = 'coveralls' ]]; then php vendor/bin/php-coveralls -v; fi

matrix:
include:
- php: 7.1
env: setup=basic laravel=5.6.*
- php: 7.1
env: setup=basic laravel=5.7.*
- php: 7.1
env: setup=basic laravel=5.8.*
- php: 7.1
env: setup=lowest laravel=5.6.*
- php: 7.1
env: setup=lowest laravel=5.7.*
- php: 7.1
env: setup=lowest laravel=5.8.*
- php: 7.1
env: setup=stable laravel=5.6.*
- php: 7.1
env: setup=stable laravel=5.7.*
- php: 7.1
env: setup=stable laravel=5.8.*
- php: 7.1
env: setup=coveralls coverage=yes laravel=5.6.*
allow_failures:
- env: laravel=dev-master
- env: setup=lowest laravel=dev-master
- env: setup=stable laravel=dev-master
- env: setup=coveralls coverage=yes laravel=5.6.*
fast_finish: true
script:
- vendor/bin/phpunit --testdox --verbose
3 changes: 1 addition & 2 deletions src/stubs/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 7.1
- 7.2

before_script:
Expand All @@ -12,4 +11,4 @@ cache:
- vendor

script:
- vendor/bin/phpunit --testdox --verbose
- vendor/bin/phpunit --testdox --verbose
8 changes: 4 additions & 4 deletions src/stubs/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
}
},
"require": {
"php": ">=7.1",
"illuminate/support": "^5.5|^5.6"
"php": ">=7.2",
"illuminate/support": "^5.5|^5.6|^5.7|^5.8"
},
"require-dev": {
"phpunit/phpunit": "^6.5|^7.0",
"orchestra/testbench": "3.5.*|3.6.*"
"phpunit/phpunit": "^6.5|^7.0|^8.0",
"orchestra/testbench": "3.5.*|3.6.*|3.7.*|3.8.*"
},
"extra": {
"laravel": {
Expand Down
Loading

0 comments on commit 1457ade

Please sign in to comment.