Skip to content

Commit

Permalink
Edit travis and composer
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelAndish committed Nov 21, 2019
1 parent 64d3f31 commit cb20365
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 46 deletions.
58 changes: 15 additions & 43 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
language: php

cache:
directories:
- $HOME/.composer/cache/files

php:
- 7.2
- 7.3
sudo: false

matrix:
include:
- php: 7.2
env: LARAVEL_VERSION=5.5.*

- php: 7.3
env: LARAVEL_VERSION=5.5.*

- php: 7.2
env: LARAVEL_VERSION=5.6.*
- php: 7.3
env: LARAVEL_VERSION=5.6.*

- php: 7.2
env: LARAVEL_VERSION=5.7.*
Expand All @@ -27,49 +25,23 @@ matrix:
env: LARAVEL_VERSION=5.8.*

- php: 7.2
env: LARAVEL_VERSION=6.0.*
- php: 7.3
env: LARAVEL_VERSION=6.0.*

- php: 7.2
env: LARAVEL_VERSION=6.1.*
- php: 7.3
env: LARAVEL_VERSION=6.1.*

- php: 7.2
env: LARAVEL_VERSION=6.2.*
- php: 7.3
env: LARAVEL_VERSION=6.2.*

- php: 7.2
env: LARAVEL_VERSION=6.3.*
env: LARAVEL_VERSION=6.*
- php: 7.3
env: LARAVEL_VERSION=6.3.*

- php: 7.2
env: LARAVEL_VERSION=6.4.*
- php: 7.3
env: LARAVEL_VERSION=6.4.*

- php: 7.2
env: LARAVEL_VERSION=6.5.*
- php: 7.3
env: LARAVEL_VERSION=6.5.*
env: LARAVEL_VERSION=6.*

before_install:
- if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'hhvm.jit = false' >> /etc/hhvm/php.ini ; fi
- composer self-update --stable -n
- composer require "laravel/framework:${LARAVEL_VERSION}" --no-update -n

install:
- travis_retry composer install --no-suggest
- travis_retry composer install --no-suggest --prefer-dist -n -o

script:
- vendor/bin/phpunit --coverage-clover clover.xml;

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml;

after_script:
- wget https://scrutinizer-ci.com/ocular.phar;
- php ocular.phar code-coverage:upload --format=php-clover clover.xml;
- bash <(curl -s https://codecov.io/bash)
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml;
- bash <(curl -s https://codecov.io/bash)
© 2019 GitHub, Inc.
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,17 @@
],
"autoload": {
"psr-4": {
"Mekaeil\\LaravelUserManagement\\": "src/",
"Mekaeil\\LaravelUserManagement\\Test\\": "tests/"
"Mekaeil\\LaravelUserManagement\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Mekaeil\\LaravelUserManagement\\Test\\": "tests"
}
},
"scripts": {
"test": "phpunit"
},
"extra": {
"laravel": {
"providers": [
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<whitelist>
<directory suffix=".php">./src</directory>
<exclude>
<directory suffix=".blade.php">./src/</directory>
Expand Down

0 comments on commit cb20365

Please sign in to comment.