From cb20365c4a1db5c99f0807052a22db3609175975 Mon Sep 17 00:00:00 2001 From: Mekaeil Date: Thu, 21 Nov 2019 19:26:41 +0330 Subject: [PATCH] Edit travis and composer --- .travis.yml | 58 +++++++++++++----------------------------------- composer.json | 11 +++++++-- phpunit.xml.dist | 2 +- 3 files changed, 25 insertions(+), 46 deletions(-) diff --git a/.travis.yml b/.travis.yml index a924bac..fbb7ffe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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.* @@ -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) \ No newline at end of file + - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; + - bash <(curl -s https://codecov.io/bash) +© 2019 GitHub, Inc. \ No newline at end of file diff --git a/composer.json b/composer.json index adafc20..01086e4 100644 --- a/composer.json +++ b/composer.json @@ -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": [ diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 37fd238..f5fefb3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -16,7 +16,7 @@ - + ./src ./src/