test-local.sh 402 B

123456789101112131415
  1. #! /usr/bin/env bash
  2. # Exit in case of error
  3. set -e
  4. docker-compose down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
  5. if [ $(uname -s) = "Linux" ]; then
  6. echo "Remove __pycache__ files"
  7. sudo find . -type d -name __pycache__ -exec rm -r {} \+
  8. fi
  9. docker-compose build
  10. docker-compose up -d
  11. docker-compose exec -T backend bash /app/tests-start.sh "$@"