Skip to content

Commit

Permalink
Aligns composer to g1a/starter
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Mar 21, 2020
1 parent 840c5d6 commit 665ebe8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ install:

script:
- cd ${TRAVIS_BUILD_DIR}
- composer lint
- composer sniff
- composer stan
- composer test

after_script:
- cd ${TRAVIS_BUILD_DIR}
Expand Down
21 changes: 17 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,23 @@
"phpstan/phpstan-phpunit": "^0.11.2"
},
"scripts": {
"lint": "php -l ./src/",
"sniff": "./vendor/bin/phpcs -s --standard=PSR2 ./src/ ./tests/",
"test": "./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml",
"stan": "./vendor/bin/phpstan analyse --level 7 src tests",
"lint": [
"find src -name '*.php' -print0 | xargs -0 -n1 php -l",
"find tests -name '*.php' -print0 | xargs -0 -n1 php -l"
],
"cs": "phpcs --standard=PSR2 -n src tests",
"cbf": "phpcbf --standard=PSR2 -n src tests",
"unit": "phpunit --colors=always --coverage-clover ./tests/logs/clover.xml",
"stan": "phpstan analyse --level 7 src tests",
"test": [
"@lint",
"@unit",
"@cs",
"@stan"
],
"release": [
"release VERSION"
],
"coveralls": "php ./vendor/bin/php-coveralls -v"
}
}

0 comments on commit 665ebe8

Please sign in to comment.