Extract phpunit call to run-phpunit.sh

This commit is contained in:
Andreas Fischer 2014-03-03 02:10:01 +01:00
parent ea31d9d38c
commit dbcba51198
2 changed files with 9 additions and 1 deletions

View File

@ -22,7 +22,7 @@ before_script:
script:
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=build/code-sniffer-ruleset.xml phpseclib/; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=build/code-sniffer-ruleset-tests.xml tests/; fi"
- phpunit --verbose --coverage-text --coverage-html code_coverage/
- travis/run-phpunit.sh
after_success:
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage.sh; fi"

8
travis/run-phpunit.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
set -e
set -x
phpunit \
--verbose \
--coverage-text \
--coverage-html code_coverage/