Skip to content

Commit

Permalink
update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkitjalan committed Sep 6, 2019
1 parent 0c08da4 commit b5dd559
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 7 deletions.
33 changes: 27 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
language: php

php:
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache

sudo: false
matrix:
fast_finish: true
include:
- php: 7.2
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.2
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.3
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.3
env: LARAVEL='5.8.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.2
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.2
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-stable'
- php: 7.3
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-lowest'
- php: 7.3
env: LARAVEL='6.*' COMPOSER_FLAGS='--prefer-stable'

before_script:
before_install:
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- travis_retry composer require --no-update --no-interaction "illuminate/support:${LARAVEL}"

install:
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction --no-suggest

script:
- phpunit --coverage-text --coverage-clover=coverage.clover
Expand Down
14 changes: 13 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"name": "pulkitjalan/geoip",
"description": "Geoip Wrapper with Laravel Support",
"homepage": "https://github.com/pulkitjalan/geoip",
"keywords": ["geoip", "ipstack", "ip-api", "maxmind", "telize"],
"keywords": [
"geoip",
"ipstack",
"ip-api",
"maxmind",
"telize"
],
"license": "MIT",
"authors": [
{
Expand All @@ -28,6 +34,12 @@
"helpers.php"
]
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "4.0.x-dev"
Expand Down

0 comments on commit b5dd559

Please sign in to comment.