Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from hollodotme/master
Add PHPStan to build tools
- Loading branch information
Showing
9 changed files
with
111 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
language: php | ||
|
||
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.1snapshot | ||
- 7.2snapshot | ||
|
||
branches: | ||
only: | ||
- master | ||
- development | ||
- /^feature\/.+$/ | ||
- /^issue\/.+$/ | ||
- master | ||
- development | ||
- /^feature\/.+$/ | ||
- /^issue\/.+$/ | ||
|
||
before_script: | ||
- git checkout $TRAVIS_BRANCH | ||
- composer self-update | ||
- mkdir -p vendor/bin | ||
- composer install -o --prefer-dist --no-interaction | ||
- mkdir build/logs | ||
- git checkout $TRAVIS_BRANCH | ||
- composer self-update | ||
- mkdir -p vendor/bin | ||
- composer install -o --prefer-dist --no-interaction | ||
- mkdir build/logs | ||
|
||
script: | ||
- php vendor/bin/phpunit.phar -c build/ | ||
- php vendor/bin/phpunit.phar -c build/ --coverage-clover build/logs/clover.xml | ||
- php vendor/bin/phpstan.phar analyze --level max src | ||
|
||
after_success: | ||
- travis_retry php vendor/bin/coveralls.phar -v --exclude-no-stmt | ||
- travis_retry php vendor/bin/coveralls.phar -v --exclude-no-stmt | ||
|
||
notifications: | ||
slack: fortunesolutions:PoLjMJuARdFicBIEPzdNrZ96 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,19 @@ | ||
<phpunit | ||
bootstrap="../tests/Unit/bootstrap.php" | ||
verbose="true" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTestSize="true" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true"> | ||
<testsuites> | ||
<testsuite name="IceHawkSession"> | ||
<directory suffix="Test.php">../tests/Unit</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">../src</directory> | ||
</whitelist> | ||
<blacklist> | ||
<directory suffix=".php">../tests/Unit</directory> | ||
<directory>../tests/Unit/Fixtures</directory> | ||
<directory>../vendor</directory> | ||
</blacklist> | ||
</filter> | ||
<logging> | ||
<log type="coverage-html" target="logs/coverage"/> | ||
<log type="coverage-clover" target="logs/clover.xml"/> | ||
</logging> | ||
bootstrap="../tests/bootstrap.php" | ||
verbose="true" | ||
beStrictAboutOutputDuringTests="true" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true"> | ||
<testsuites> | ||
<testsuite name="IceHawkSession"> | ||
<directory suffix="Test.php">../tests/Unit</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">../src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters