From b69f3d3c53f69c9e6d5c9921013f2c932420bd70 Mon Sep 17 00:00:00 2001 From: Orkhan Ahmadov Date: Wed, 18 Sep 2019 18:40:32 +0200 Subject: [PATCH] WIP --- .scrutinizer.yml | 7 +++++++ .travis.yml | 42 ++++++++++++++++++++++++++++++++---------- CHANGELOG.md | 2 +- README.md | 18 +++++++++++------- 4 files changed, 51 insertions(+), 18 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index df16b68..d222b18 100755 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,3 +1,10 @@ +build: + nodes: + analysis: + tests: + override: + - php-scrutinizer-run + filter: excluded_paths: [tests/*] diff --git a/.travis.yml b/.travis.yml index 24c2d6c..753f890 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,43 @@ language: php php: - - 7.1 - - 7.2 - - 7.3 + - 7.1 + - 7.2 + - 7.3 + - 7.4snapshot env: - matrix: - - COMPOSER_FLAGS="--prefer-lowest" - - COMPOSER_FLAGS="" + global: + - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) + matrix: + - COMPOSER_FLAGS="--prefer-lowest" + - COMPOSER_FLAGS="" + +matrix: + fast_finish: true + exclude: + - php: 7.1 + env: LARAVEL=6.* TESTBENCH=4.* PHPUNIT=8.* + allow_failures: + - php: 7.4snapshot + +cache: + directories: + - $HOME/.composer/cache before_script: - - travis_retry composer self-update - - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source + - travis_retry composer self-update + - travis_retry composer install --no-interaction + - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + - chmod +x ./cc-test-reporter + - ./cc-test-reporter before-build script: - - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover + - vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml after_script: - - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover + - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi + +branches: + only: + - master diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c01045..dc40d13 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,6 @@ All notable changes to `laravel-ip-middleware` will be documented in this file -## 1.0.0 - 201X-XX-XX +## 1.0.0 - 2019-09-18 - initial release diff --git a/README.md b/README.md index 238d4a3..ea1da5f 100755 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ -# Very short description of the package +# WIP -[![Latest Version on Packagist](https://img.shields.io/packagist/v/orkhanahmadov/laravel-ip-middleware.svg?style=flat-square)](https://packagist.org/packages/orkhanahmadov/laravel-ip-middleware) -[![Build Status](https://img.shields.io/travis/orkhanahmadov/laravel-ip-middleware/master.svg?style=flat-square)](https://travis-ci.org/orkhanahmadov/laravel-ip-middleware) -[![Quality Score](https://img.shields.io/scrutinizer/g/orkhanahmadov/laravel-ip-middleware.svg?style=flat-square)](https://scrutinizer-ci.com/g/orkhanahmadov/laravel-ip-middleware) -[![Total Downloads](https://img.shields.io/packagist/dt/orkhanahmadov/laravel-ip-middleware.svg?style=flat-square)](https://packagist.org/packages/orkhanahmadov/laravel-ip-middleware) +[![Latest Stable Version](https://poser.pugx.org/orkhanahmadov/laravel-ip-middleware/v/stable)](https://packagist.org/packages/orkhanahmadov/laravel-ip-middleware) +[![Latest Unstable Version](https://poser.pugx.org/orkhanahmadov/laravel-ip-middleware/v/unstable)](https://packagist.org/packages/orkhanahmadov/laravel-ip-middleware) +[![Total Downloads](https://img.shields.io/packagist/dt/orkhanahmadov/laravel-ip-middleware)](https://packagist.org/packages/orkhanahmadov/laravel-ip-middleware) +[![License](https://img.shields.io/github/license/orkhanahmadov/laravel-ip-middleware.svg)](https://github.com/orkhanahmadov/laravel-ip-middleware/blob/master/LICENSE.md) -This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors. +[![Build Status](https://img.shields.io/travis/orkhanahmadov/laravel-ip-middleware.svg)](https://travis-ci.org/orkhanahmadov/laravel-ip-middleware) +#[![Test Coverage](https://api.codeclimate.com/v1/badges/85b8405174a619e906e1/test_coverage)](https://codeclimate.com/github/orkhanahmadov/laravel-ip-middleware/test_coverage) +#[![Maintainability](https://api.codeclimate.com/v1/badges/85b8405174a619e906e1/maintainability)](https://codeclimate.com/github/orkhanahmadov/laravel-ip-middleware/maintainability) +[![Quality Score](https://img.shields.io/scrutinizer/g/orkhanahmadov/laravel-ip-middleware.svg)](https://scrutinizer-ci.com/g/orkhanahmadov/laravel-ip-middleware) +#[![StyleCI](https://github.styleci.io/repos/208126340/shield?branch=master)](https://github.styleci.io/repos/208126340) ## Installation @@ -50,4 +54,4 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio ## Laravel Package Boilerplate -This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com). \ No newline at end of file +This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).