Skip to content

Commit

Permalink
Setup codestyle check for codestyle check. Quis custodiet ipsos custo…
Browse files Browse the repository at this point in the history
…des?
  • Loading branch information
OndraM committed May 14, 2018
1 parent c65ecc0 commit c834dd8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: coverage-clover.xml
json_path: coveralls-upload.json
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
language: php

php:
- 7.1
- 7.2

install:
- travis_retry composer self-update && composer --version
- travis_retry composer update --no-interaction

script:
- composer all
- composer all-ci

after_success:
- travis_retry php vendor/bin/php-coveralls -v
21 changes: 20 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,34 @@
"require-dev": {
"j13k/yaml-lint": "^1.1",
"mhujer/yaml-sort-checker": "^1.2",
"phpstan/phpstan-phpunit": "^0.9.4",
"phpstan/phpstan-shim": "^0.9.2",
"phpunit/phpunit": "^7.1"
},
"scripts": {
"all": [
"@lint"
"@lint",
"@analyze",
"@test"
],
"all-ci": [
"@lint",
"@analyze",
"@test-ci"
],
"lint": [
"for FILE_NAME in *.yml *.yaml; do vendor/bin/yaml-lint \"$FILE_NAME\"; done",
"vendor/bin/yaml-sort-checker"
],
"analyze": [
"vendor/bin/ecs check src/ tests/ -vvv --ansi",
"vendor/bin/phpstan.phar analyze ./src ./tests -c phpstan.neon --level 7 --ansi"
],
"test": [
"./vendor/bin/phpunit --colors=always"
],
"test-ci": [
"./vendor/bin/phpunit --colors=always --coverage-clover coverage-clover.xml"
]
},
"config": {
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon

0 comments on commit c834dd8

Please sign in to comment.