mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
Merge pull request #355 from bantu/scrutinizer-coverage
Scrutinizer CI code coverage * bantu/scrutinizer-coverage: Specify the runs option for external code coverage. No Scrutinizer Code Coverage on HHVM either. Extract into upload-code-coverage-scrutinizer.sh Add -html suffix to existing code-coverage shell script. Configure Scrutinizer CI to expect external code coverage data. Upload clover.xml from Travis CI into Scrutinizer CI. Produce a clover.xml code coverage file.
This commit is contained in:
commit
bb3c2ca28d
6
.scrutinizer.yml
Normal file
6
.scrutinizer.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
imports:
|
||||||
|
- php
|
||||||
|
|
||||||
|
tools:
|
||||||
|
external_code_coverage:
|
||||||
|
runs: 5 # No Code Coverage on PHP 5.2 and HHVM
|
@ -1,5 +1,7 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
|
# When adding environments here, the number of runs specified in .scrutinizer.yml
|
||||||
|
# may have to be adjusted.
|
||||||
php:
|
php:
|
||||||
- 5.2
|
- 5.2
|
||||||
- 5.3.3
|
- 5.3.3
|
||||||
@ -25,4 +27,5 @@ script:
|
|||||||
- travis/run-phpunit.sh
|
- travis/run-phpunit.sh
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage.sh; fi"
|
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage-html.sh; fi"
|
||||||
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '5.2' -a '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then travis/upload-code-coverage-scrutinizer.sh; fi"
|
||||||
|
@ -24,4 +24,5 @@ fi
|
|||||||
$PHPUNIT_EXTRA_ARGS \
|
$PHPUNIT_EXTRA_ARGS \
|
||||||
--verbose \
|
--verbose \
|
||||||
--coverage-text \
|
--coverage-text \
|
||||||
|
--coverage-clover code_coverage/clover.xml \
|
||||||
--coverage-html code_coverage/
|
--coverage-html code_coverage/
|
||||||
|
13
travis/upload-code-coverage-scrutinizer.sh
Executable file
13
travis/upload-code-coverage-scrutinizer.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# This file is part of the phpseclib project.
|
||||||
|
#
|
||||||
|
# (c) Andreas Fischer <bantu@phpbb.com>
|
||||||
|
#
|
||||||
|
# For the full copyright and license information, please view the LICENSE
|
||||||
|
# file that was distributed with this source code.
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
|
||||||
|
wget https://scrutinizer-ci.com/ocular.phar
|
||||||
|
php ocular.phar code-coverage:upload --format=php-clover code_coverage/clover.xml
|
Loading…
Reference in New Issue
Block a user