Skip to content

Commit

Permalink
Merge 4a6eb44 into 261b3ab
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlakis committed Oct 28, 2019
2 parents 261b3ab + 4a6eb44 commit 434004c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .travis → .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ before_install:
- travis_retry composer self-update

install:
- travis_retry composer require --no-update php-coveralls/php-coveralls:^2.0
- travis_retry composer install --no-interaction --prefer-dist --no-progress --no-suggest

before_script:
- mkdir -p build/logs

script:
- composer check-style
- composer static-analysis
- composer test
- composer test-ci

after_success:
- travis_retry php bin/php-coveralls -v
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-coveralls]][link-coveralls]
[![Total Downloads][ico-downloads]][link-downloads]


Expand Down Expand Up @@ -52,13 +53,12 @@ The BSD 3-Clause License. Please see [License File](LICENSE) for more informatio
[ico-version]: https://img.shields.io/packagist/v/staysafe/password-policy-builder.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg
[ico-travis]: https://img.shields.io/travis/staysafe/password-policy-builder/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/staysafe/password-policy-builder.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/staysafe/password-policy-builder.svg?style=flat-square
[ico-coveralls]: https://coveralls.io/repos/github/staysafe/password-policy-builder/badge.svg
[ico-downloads]: https://img.shields.io/packagist/dt/staysafe/password-policy-builder.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/staysafe/password-policy-builder
[link-travis]: https://travis-ci.org/staysafe/password-policy-builder
[link-code-quality]: https://scrutinizer-ci.com/g/staysafe/password-policy-builder
[link-coveralls]: https://coveralls.io/github/staysafe/password-policy-builder
[link-downloads]: https://packagist.org/packages/staysafe/password-policy-builder
[link-author]: https://github.com/pavlakis
[link-contributors]: ../../contributors
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "staysafe/password-policy-builder",
"description": "A verbose password policy builder",
"type": "library",
"license": "BSD 3-Clause",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Antonios Pavlakis",
Expand All @@ -25,6 +25,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.15",
"phpstan/phpstan": "^0.11.19",
"phpunit/phpunit": "^8.4"
},
"config": {
Expand All @@ -37,8 +38,14 @@
"scripts": {
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-html=tests/coverage/ ",
"test-coverage-ci": "phpunit --verbose --coverage-clover build/logs/clover.xml",
"check-style": "php-cs-fixer fix --dry-run",
"fix-style": "php-cs-fixer fix",
"static-analysis": "phpstan analyse src --level 7"
"static-analysis": "phpstan analyse src --level 7",
"test-ci": [
"@check-style",
"@static-analysis",
"@test-coverage-ci"
]
}
}
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parameters:
inferPrivatePropertyTypeFromConstructor: true

0 comments on commit 434004c

Please sign in to comment.