Skip to content

Commit 6ab12db

Browse files
Laravel 7 Support (#181)
* Laravel 7 Support * Build matrix * double matrix * lumen 7 dev * cache * version constraint update * Update .travis.yml
1 parent 90f72ef commit 6ab12db

File tree

4 files changed

+53
-38
lines changed

4 files changed

+53
-38
lines changed

.travis.yml

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
11
dist: trusty
22

3-
language: php
4-
5-
php:
6-
- 5.5.9
7-
- 5.6
8-
- 7.0
9-
- 7.1
10-
- 7.2
11-
- 7.3
12-
- 7.4
13-
- hhvm
14-
- nightly
3+
cache:
4+
directories:
5+
- $HOME/.composer/cache/files
156

16-
sudo: false
7+
language: php
178

189
matrix:
1910
allow_failures:
20-
- php: hhvm
2111
- php: nightly
12+
13+
include:
14+
- php: 5.5.9
15+
env: LARAVEL="5.1.*" LUMEN="5.1.*"
16+
- php: hhvm-3.18
17+
env: LARAVEL="5.1.*" LUMEN="5.1.*"
18+
- php: 7.0
19+
env: LARAVEL="5.5.*" LUMEN="5.5.*"
20+
- php: 7.1
21+
env: LARAVEL="^5.5" LUMEN="^5.5"
22+
- php: 7.2
23+
env: LARAVEL="^5.5" LUMEN="^5.5"
24+
- php: 7.2
25+
env: LARAVEL="^6.0" LUMEN="^6.0"
26+
- php: 7.2
27+
env: LARAVEL="^7.0" LUMEN="^7.0@dev"
28+
- php: 7.3
29+
env: LARAVEL="^6.0" LUMEN="^6.0"
30+
- php: 7.3
31+
env: LARAVEL="^7.0" LUMEN="^7.0@dev"
2232
- php: 7.4
33+
env: LARAVEL="^6.0" LUMEN="^6.0"
34+
- php: 7.4
35+
env: LARAVEL="^7.0" LUMEN="^7.0@dev"
36+
- php: nightly
37+
env: LARAVEL="^6.0" LUMEN="^6.0"
38+
- php: nightly
39+
env: LARAVEL="^7.0" LUMEN="^7.0@dev"
2340

2441
before_install:
25-
- echo "memory_limit=3G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
26-
27-
install:
28-
- if [ ${TRAVIS_PHP_VERSION} == "5.5.9" ]; then
29-
travis_retry composer require laravel/framework "5.2.*";
30-
elif [ ${TRAVIS_PHP_VERSION} == "5.6" ]; then
31-
travis_retry composer require laravel/framework "5.4.*";
32-
elif [ ${TRAVIS_PHP_VERSION} == "7.0" ]; then
33-
travis_retry composer require laravel/framework "5.5.*";
34-
else
35-
travis_retry composer update --no-interaction --prefer-source;
36-
fi
42+
- echo "memory_limit=3G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
3743

38-
script: make test
44+
script:
45+
- travis_retry composer require laravel/framework:${LARAVEL} --no-interaction --prefer-dist
46+
- vendor/bin/phpunit
47+
- composer remove laravel/framework
48+
- rm composer.lock
49+
- travis_retry composer require laravel/lumen-framework:${LUMEN} --no-interaction --prefer-dist
50+
- vendor/bin/phpunit

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@ test-lumen:
1414

1515
remove-deps:
1616
rm -rf vendor
17+
rm composer.lock
1718

18-
uninstall-laravel: remove-deps
19+
uninstall-laravel:
20+
make remove-deps
1921
composer remove laravel/framework
20-
composer remove illuminate/support
22+
make remove-deps
2123

22-
uninstall-lumen: remove-deps
24+
uninstall-lumen:
25+
make remove-deps
2326
composer remove laravel/lumen-framework
24-
composer remove illuminate/support
27+
make remove-deps
2528

2629
# Ensures that the TAG variable was passed to the make command
2730
check-tag:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AWS Service Provider for Laravel 5
1+
# AWS Service Provider for Laravel 5/6/7
22

33
[![@awsforphp on Twitter](http://img.shields.io/badge/twitter-%40awsforphp-blue.svg?style=flat)](https://twitter.com/awsforphp)
44
[![Build Status](https://img.shields.io/travis/aws/aws-sdk-php-laravel.svg)](https://travis-ci.org/aws/aws-sdk-php-laravel)
@@ -14,7 +14,7 @@ PHP and Laravel 5.1.
1414

1515
**Major Versions:**
1616

17-
* **3.x** (YOU ARE HERE) - For `laravel/framework:~5.1|~6.0` and `aws/aws-sdk-php:~3.0`
17+
* **3.x** (YOU ARE HERE) - For `laravel/framework:~5.1|~6.0|~7.0` and `aws/aws-sdk-php:~3.0`
1818
* **2.x** ([2.0 branch](https://github.com/aws/aws-sdk-php-laravel/tree/2.0)) - For `laravel/framework:5.0.*` and `aws/aws-sdk-php:~2.4`
1919
* **1.x** ([1.0 branch](https://github.com/aws/aws-sdk-php-laravel/tree/1.0)) - For `laravel/framework:4.*` and `aws/aws-sdk-php:~2.4`
2020

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "aws/aws-sdk-php-laravel",
33
"homepage": "http://aws.amazon.com/sdkforphp2",
4-
"description": "A simple Laravel 5 service provider for including the AWS SDK for PHP.",
5-
"keywords": ["laravel", "laravel 5", "aws", "amazon", "sdk", "s3", "ec2", "dynamodb"],
4+
"description": "A simple Laravel 5/6/7 service provider for including the AWS SDK for PHP.",
5+
"keywords": ["laravel", "laravel 5", "laravel 6", "laravel 7", "aws", "amazon", "sdk", "s3", "ec2", "dynamodb"],
66
"type":"library",
77
"license":"Apache-2.0",
88
"authors":[
@@ -14,11 +14,11 @@
1414
"require": {
1515
"php": ">=5.5.9",
1616
"aws/aws-sdk-php": "~3.0",
17-
"illuminate/support": "~5.1|~6.0"
17+
"illuminate/support": "^5.1 || ^6.0 || ^7.0"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "~4.0|~5.0",
21-
"vlucas/phpdotenv": "~2.0|~3.0"
20+
"phpunit/phpunit": "^4.0 || ^5.0",
21+
"vlucas/phpdotenv": "^1.0 || ^2.0 || ^3.0 || ^4.0"
2222
},
2323
"suggest": {
2424
"laravel/framework": "To test the Laravel bindings",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy