coverage.sh 489 B

123456789101112131415
  1. #!/bin/sh
  2. cd /var/www/social || exit 1
  3. printf "Cleaning Redis cache: " && echo "FLUSHALL" | nc redis 6379
  4. yes yes | php bin/console doctrine:fixtures:load || exit 1
  5. php bin/console app:populate_initial_values # since loading fixtures purges the DB
  6. if [ "$#" -eq 0 ] || [ -z "$*" ]; then
  7. vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report
  8. else
  9. echo "Running with filter"
  10. vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report --filter "$*"
  11. fi