-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ composer.phar | |
composer.lock | ||
.idea/ | ||
atlassian-ide-plugin.xml | ||
ocular.phar | ||
.reports/ |
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,10 +1,31 @@ | ||
language: php | ||
php: | ||
- "5.5" | ||
- "5.4" | ||
- "5.3" | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
- 5.3 | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
|
||
before_script: | ||
- composer install | ||
- composer self-update | ||
- composer install --prefer-source | ||
|
||
script: | ||
- mkdir .reports | ||
# Code style | ||
- php vendor/bin/phpcs ./src/ --standard=PSR1 --encoding=utf-8 --report=summary | ||
- php vendor/bin/phpcs ./src/ --standard=PSR2 --encoding=utf-8 --report=summary | ||
# PHPUnit tests | ||
- php vendor/bin/phpunit --configuration phpunit.xml --coverage-clover=.reports/clover.xml | ||
|
||
after_success: | ||
# Send cover | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover .reports/clover.xml | ||
|
||
script: phpunit --configuration phpunit.xml --coverage-text | ||
git: | ||
depth: 1 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
composer install | ||
|
||
# Code style | ||
php vendor/bin/phpcs ./src/ --standard=PSR1 --encoding=utf-8 --report=emacs | ||
php vendor/bin/phpcs ./src/ --standard=PSR2 --encoding=utf-8 --report=emacs | ||
|
||
# PHPUnit tests | ||
php vendor/bin/phpunit --coverage-html .reports | ||
|
||
# open .reports/index.html |
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