Skip to content

Commit

Permalink
add support for Laravel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 4, 2019
1 parent 30140f2 commit 0eb944f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 12 deletions.
42 changes: 32 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
language: php
cache:
directories:
- $HOME/.composer/cache

php:
- 7.2
- 7.3
language: php

env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
global:
- COVERAGE=0

matrix:
include:
- php: 7.2
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.2
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.3
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.3
env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable'
- 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'
fast_finish: true

before_script:
- composer config discard-changes true

before_install:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- travis_retry composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update

script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
install:
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction --no-suggest
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `eloquent-sortable` will be documented in this file

## 3.7.0 - 2019-09-04

- add support for Laravel 6

## 3.6.0 - 2019-04-01

- allow `setNewOrder` to accept a custom sort column
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"license": "MIT",
"require": {
"php": "^7.2",
"laravel/framework": "~5.8.0"
"laravel/framework": "~5.8.0|^6.0"
},
"require-dev": {
"phpunit/phpunit" : "^8.0",
"orchestra/testbench": "~3.8.0"
"orchestra/testbench": "~3.8.0|^4.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 0eb944f

Please sign in to comment.