diff --git a/.travis.yml b/.travis.yml index 5f1b4c5..9e776e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,47 +3,37 @@ language: php matrix: include: - php: '7.2' - env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json' - php: '7.2' - env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-lowest' + env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json' - php: '7.2' - env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json' - php: '7.2' - env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' - - php: '7.2' - env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' - - php: '7.2' - env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' - - php: '7.2' - env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json' - php: '7.3' - env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json' - php: '7.3' - env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-lowest' + env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json' - php: '7.3' - env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json' - php: '7.3' - env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' + env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json' - php: '7.3' - env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-lowest' - php: '7.3' - env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' - - php: '7.3' - env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' - - php: '7.4' - env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-stable' - php: '7.4' - env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-lowest' + env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json' - php: '7.4' - env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json' - php: '7.4' - env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' + env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json' - php: '7.4' - env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' + env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json' - php: '7.4' - env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' + env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-lowest' - php: '7.4' - env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' RUN_PHPCS=1 + env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-stable' RUN_PHPCS=1 before_script: - travis_retry composer self-update diff --git a/composer-prel8.json b/composer-prel8.json new file mode 100644 index 0000000..02eb413 --- /dev/null +++ b/composer-prel8.json @@ -0,0 +1,54 @@ +{ + "name": "cesargb/laravel-cascade-delete", + "description": "Cascading eliminations implemented in polymorphic relationships for the Laravel apps", + "keywords": [ + "laravel", + "elocuent", + "cascade", + "delete", + "polymorphic", + "relation", + "residual" + ], + "type": "library", + "require": { + "php": "^7.1", + "illuminate/console": "^6.0|^7.0", + "illuminate/database": "^6.0|^7.0", + "illuminate/events": "^6.0|^7.0", + "illuminate/support": "^6.0|^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0|^7.0|^8.0", + "orchestra/testbench": "^4.0|^5.0", + "friendsofphp/php-cs-fixer": "^2.14" + }, + "autoload": { + "psr-4": { + "Cesargb\\Database\\Support\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "test": "vendor/bin/phpunit --colors=always --coverage-text" + }, + "license": "MIT", + "authors": [ + { + "name": "Cesar Garcia", + "email": "cesargb@gmail.com" + } + ], + "minimum-stability": "stable", + "extra": { + "laravel": { + "providers": [ + "Cesargb\\Database\\Support\\CascadeDeleteServiceProvider" + ] + } + } +} diff --git a/composer.json b/composer.json index c33ebb7..f429e17 100644 --- a/composer.json +++ b/composer.json @@ -13,15 +13,16 @@ "type": "library", "require": { "php": "^7.1", - "illuminate/console": "~5.5.45|~5.8|^6.0|^7.0", - "illuminate/database": "~5.5.45|~5.8|^6.0|^7.0", - "illuminate/events": "~5.5.45|~5.8|^6.0|^7.0", - "illuminate/support": "~5.5.45|~5.8|^6.0|^7.0" + "illuminate/console": "^6.0|^7.0|^8.0", + "illuminate/database": "^6.0|^7.0|^8.0", + "illuminate/events": "^6.0|^7.0|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0" }, "require-dev": { - "phpunit/phpunit": "^6.0|^7.0|^8.0", - "orchestra/testbench": "^3.5|^3.8|^4.0|^5.0", - "friendsofphp/php-cs-fixer": "^2.14" + "phpunit/phpunit": "^7.0|^8.0", + "orchestra/testbench": "^4.0|^5.0|^6.0", + "friendsofphp/php-cs-fixer": "^2.14", + "laravel/legacy-factories": "^1.0.4" }, "autoload": { "psr-4": {