Skip to content

Commit

Permalink
Adds PHP 7.4 to supported versions, and aligns travis to other packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Apr 11, 2020
1 parent 3a5a66b commit 5cbdc77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ php:
- 7.1
- 7.2
- 7.3
- 7.4

before_install:
- composer self-update
Expand All @@ -15,10 +16,7 @@ install:

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

after_script:
- cd ${TRAVIS_BUILD_DIR}
Expand Down
18 changes: 14 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,20 @@
}
},
"scripts": {
"lint": "php -l ./src/",
"sniff": "./vendor/bin/phpcs -s --standard=PSR12 ./src/ ./tests/",
"test": "./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml",
"stan": "./vendor/bin/phpstan analyse --level 5 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=PSR12 -n src tests",
"cbf": "phpcbf --standard=PSR2 -n src tests",
"unit": "phpunit --colors=always --coverage-clover ./tests/logs/clover.xml",
"stan": "phpstan analyse --level 5 src tests",
"test": [
"@lint",
"@unit",
"@cs",
"@stan"
],
"coveralls": "php ./vendor/bin/php-coveralls -v"
}
}

0 comments on commit 5cbdc77

Please sign in to comment.