travis_integration_tests.sh 750 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -e
  3. if [ "$INTEGRATION_TESTS" == "yes" ]; then
  4. echo "Running integration tests....."
  5. echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  6. cd integration_tests
  7. docker-compose build
  8. docker-compose run master
  9. docker-compose down --remove-orphans
  10. docker-compose -f docker-compose.yml -f kombu.yml run master
  11. docker-compose -f docker-compose.yml -f kombu.yml down --remove-orphans
  12. DB=postgres docker-compose -f docker-compose.yml -f rdbms.yml run app_test
  13. DB=mysql docker-compose -f docker-compose.yml -f rdbms.yml run app_test
  14. docker-compose -f docker-compose.yml -f rdbms.yml down --remove-orphans
  15. cd ..
  16. echo "Done!"
  17. else
  18. echo "Skip integration tests..."
  19. fi