Updates for Coveralls. Also always installing a local composer as the Travis one is giving us issues
This commit is contained in:
parent
b077a3cda7
commit
fd1231e5f8
|
@ -6,14 +6,15 @@ php:
|
||||||
- 5.5
|
- 5.5
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- composer self-update
|
- curl -s http://getcomposer.org/installer | php
|
||||||
- composer install --dev --no-interaction
|
- php composer.phar install --dev --no-interaction
|
||||||
- pyrus install pear/PHP_CodeSniffer
|
- pyrus install pear/PHP_CodeSniffer
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- mkdir -p build/logs
|
||||||
- phpcs --standard=PSR2 src/
|
- phpcs --standard=PSR2 src/
|
||||||
- phpunit
|
- php vendor/bin/phpunit -c phpunit.xml.dist
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- php vendor/bin/coveralls
|
- php vendor/bin/coveralls
|
||||||
|
|
|
@ -12,4 +12,9 @@
|
||||||
<directory suffix=".php">./src/GeoIP2/</directory>
|
<directory suffix=".php">./src/GeoIP2/</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
|
<logging>
|
||||||
|
<log type="coverage-clover" target="build/logs/clover.xml"/>
|
||||||
|
</logging>
|
||||||
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user