Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Add back support for Laravel 7 (#11)
Browse files Browse the repository at this point in the history
* Add back support for Laravel 7

* Get rid of deprecated --no-suggest option

* Tweak minimum versions
  • Loading branch information
tspencer244 authored Feb 10, 2022
1 parent e0c7747 commit db9e8c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ php:
- 7.4
- 8.0

env:
- DEPENDENCY_VERSION=lowest LARAVEL_VERSION=7.* TESTBENCH_VERSION=^5.8
- DEPENDENCY_VERSION=stable LARAVEL_VERSION=7.* TESTBENCH_VERSION=^5.8
- DEPENDENCY_VERSION=lowest LARAVEL_VERSION=8.* TESTBENCH_VERSION=^6.23
- DEPENDENCY_VERSION=stable LARAVEL_VERSION=8.* TESTBENCH_VERSION=^6.23

branches:
only:
- master
Expand All @@ -14,6 +20,8 @@ before_install:
- echo "extension = apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "apc.enable_cli = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer require --no-interaction --no-update laravel/framework:${LARAVEL_VERSION} orchestra/testbench:${TESTBENCH_VERSION}
- composer update --prefer-${DEPENDENCY_VERSION} --prefer-dist --no-interaction

script:
- composer test
17 changes: 6 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
],
"require": {
"php": "^7.4 || ^8.0",
"illuminate/routing": "^8.50",
"illuminate/support": "^8.50",
"illuminate/routing": "^7.0 || ^8.50",
"illuminate/support": "^7.0 || ^8.50",
"promphp/prometheus_client_php": "^2.0"
},
"autoload": {
Expand All @@ -37,22 +37,17 @@
},
"require-dev": {
"mockery/mockery": "^1.5",
"orchestra/testbench": "^6.3",
"orchestra/testbench": "^5.8 || ^6.23",
"phpunit/phpunit": "^9.4"
},
"config": {
"sort-packages": true
},
"suggest": {
"ext-apcu": "To use the APCu driver."
"ext-apcu": "To use the APCu driver.",
"ext-redis": "To use the Redis driver."
},
"scripts": {
"phpunit": "@php vendor/bin/phpunit",
"test": [
"@composer update --prefer-lowest",
"@composer phpunit",
"@composer update",
"@composer phpunit"
]
"test": "@php vendor/bin/phpunit"
}
}

0 comments on commit db9e8c3

Please sign in to comment.