diff --git a/.travis.yml b/.travis.yml index 76fae1c7..aacbd919 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/travis/run-phpunit.sh b/travis/run-phpunit.sh new file mode 100755 index 00000000..a448774a --- /dev/null +++ b/travis/run-phpunit.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -e +set -x + +phpunit \ + --verbose \ + --coverage-text \ + --coverage-html code_coverage/