Skip to content

Commit

Permalink
Added scrutinizer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
akalongman committed Aug 23, 2016
1 parent 5ddbb09 commit f676060
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tools:
external_code_coverage:
timeout: 600
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ before_script:
- mysql -u root -e 'create database telegrambot; use telegrambot; source structure.sql;'

script:
- ./vendor/bin/phpunit
- ./vendor/bin/phpcs --standard=phpcs.xml -snp --encoding=utf-8 src/ --report-width=150
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
Empty file added build/.gitkeep
Empty file.
15 changes: 8 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>
<logging>
<!-- <log type="coverage-html" target="build/coverage" title="Package" charset="UTF-8" yui="true" highlight="true"
lowUpperBound="35" highLowerBound="70" />
<log type="coverage-clover" target="build/logs/clover.xml" />
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false" />
--> <!--<log type="testdox-html" target="tests/testdox.html" logIncompleteSkipped="false" />-->
</logging>
<filter>
<whitelist>
<directory suffix=".php" processUncoveredFilesFromWhitelist="true">./src</directory>
<exclude>
<directory suffix=".php">./src/Exception</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

0 comments on commit f676060

Please sign in to comment.