run coveralls when running build with code coverage

This commit is contained in:
troosan 2018-05-20 17:13:04 +02:00
parent e47ce1b4fc
commit 2480103b49
2 changed files with 4 additions and 4 deletions

View File

@ -56,4 +56,4 @@ script:
after_success: after_success:
## Coveralls ## Coveralls
- if [ -z "$COVERAGE" ]; then travis_retry php vendor/bin/php-coveralls -v ; fi - if [ -n "$COVERAGE" ]; then travis_retry php vendor/bin/php-coveralls -v ; fi

View File

@ -61,8 +61,7 @@
"php": "^5.3.3 || ^7.0", "php": "^5.3.3 || ^7.0",
"ext-xml": "*", "ext-xml": "*",
"zendframework/zend-escaper": "^2.2", "zendframework/zend-escaper": "^2.2",
"phpoffice/common": "^0.2", "phpoffice/common": "^0.2"
"php-coveralls/php-coveralls": "1.1.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8.36 || ^5.0", "phpunit/phpunit": "^4.8.36 || ^5.0",
@ -73,7 +72,8 @@
"phploc/phploc": "2.* || 3.* || 4.*", "phploc/phploc": "2.* || 3.* || 4.*",
"dompdf/dompdf":"0.8.*", "dompdf/dompdf":"0.8.*",
"tecnickcom/tcpdf": "6.*", "tecnickcom/tcpdf": "6.*",
"mpdf/mpdf": "5.* || 6.* || 7.*" "mpdf/mpdf": "5.* || 6.* || 7.*",
"php-coveralls/php-coveralls": "1.1.0 || ^2.0"
}, },
"suggest": { "suggest": {
"ext-zip": "Allows writing OOXML and ODF", "ext-zip": "Allows writing OOXML and ODF",