runTests.sh 392 B

1234567891011121314151617
  1. #/usr/bin/env/sh
  2. set -e
  3. echo 'Running unit tests.'
  4. if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then
  5. ./vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml --coverage-text
  6. else
  7. ./vendor/bin/phpunit --verbose
  8. fi
  9. echo ''
  10. echo ''
  11. echo ''
  12. echo 'Testing for Coding Styling Compliance.'
  13. echo 'All code should follow PSR standards.'
  14. ./vendor/bin/php-cs-fixer fix ./ -vv --dry-run