Skip to content

Commit

Permalink
Declaring strict types. Adding return types to all functions. Adding …
Browse files Browse the repository at this point in the history
…code coverage make target. Updating travis config to report code coverage to coveralls.io.
  • Loading branch information
brentscheffler committed Mar 6, 2019
1 parent 6a79048 commit 83b06dc
Show file tree
Hide file tree
Showing 13 changed files with 696 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
vendor/
debug/
build/
10 changes: 9 additions & 1 deletion .travis.yml
@@ -1,4 +1,12 @@
language: php
php:
- '7.2'
install: composer install

install:
- composer install

script:
- make coverage

after_success:
- travis_retry php vendor/bin/php-coveralls
9 changes: 4 additions & 5 deletions Makefile
@@ -1,14 +1,13 @@
.PHONY: release

analyze:
vendor/bin/psalm --show-info=false

report:
vendor/bin/psalm --report=debug/psalm.xml
sensible-browser debug/psalm.xml
vendor/bin/psalm

test:
vendor/bin/phpunit

coverage:
vendor/bin/phpunit --coverage-clover=build/logs/clover.xml

release:
/usr/bin/env php release
8 changes: 5 additions & 3 deletions composer.json
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7"
"php": ">=7.2"
},
"autoload": {
"psr-4": {
Expand All @@ -19,11 +19,13 @@
},
"require-dev": {
"phpunit\/phpunit": "^7.3",
"vimeo/psalm": "^3.0"
"vimeo/psalm": "^3.0",
"php-coveralls/php-coveralls": "^2.1",
"predis/predis": "^1.1"
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
"Throttler\\Tests\\": "tests"
}
},
"suggest": {
Expand Down

0 comments on commit 83b06dc

Please sign in to comment.