mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-11 17:38:53 +00:00
Extract phpunit call to run-phpunit.sh
This commit is contained in:
parent
ea31d9d38c
commit
dbcba51198
@ -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
8
travis/run-phpunit.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
set -x
|
||||
|
||||
phpunit \
|
||||
--verbose \
|
||||
--coverage-text \
|
||||
--coverage-html code_coverage/
|
Loading…
Reference in New Issue
Block a user