Skip to content

Commit b5dd559

Browse files
committed
update travis
1 parent 0c08da4 commit b5dd559

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

.travis.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
11
language: php
22

3-
php:
4-
- 7.2
5-
- 7.3
3+
cache:
4+
directories:
5+
- $HOME/.composer/cache
66

7-
sudo: false
7+
matrix:
8+
fast_finish: true
9+
include:
10+
- php: 7.2
11+
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-lowest'
12+
- php: 7.2
13+
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-stable'
14+
- php: 7.3
15+
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-lowest'
16+
- php: 7.3
17+
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-stable'
18+
- php: 7.2
19+
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-lowest'
20+
- php: 7.2
21+
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-stable'
22+
- php: 7.3
23+
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-lowest'
24+
- php: 7.3
25+
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-stable'
826

9-
before_script:
27+
before_install:
1028
- travis_retry composer self-update
11-
- travis_retry composer install --no-interaction --prefer-source
29+
- travis_retry composer require --no-update --no-interaction "illuminate/support:${LARAVEL}"
30+
31+
install:
32+
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction --no-suggest
1233

1334
script:
1435
- phpunit --coverage-text --coverage-clover=coverage.clover

composer.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"name": "pulkitjalan/geoip",
33
"description": "Geoip Wrapper with Laravel Support",
44
"homepage": "https://github.com/pulkitjalan/geoip",
5-
"keywords": ["geoip", "ipstack", "ip-api", "maxmind", "telize"],
5+
"keywords": [
6+
"geoip",
7+
"ipstack",
8+
"ip-api",
9+
"maxmind",
10+
"telize"
11+
],
612
"license": "MIT",
713
"authors": [
814
{
@@ -28,6 +34,12 @@
2834
"helpers.php"
2935
]
3036
},
37+
"scripts": {
38+
"test": "vendor/bin/phpunit"
39+
},
40+
"config": {
41+
"sort-packages": true
42+
},
3143
"extra": {
3244
"branch-alias": {
3345
"dev-master": "4.0.x-dev"

0 commit comments

Comments
 (0)