travis_compat_tests.sh 726 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set -e
  3. if [ "$COMPAT_TESTS" == "yes" ]; then
  4. echo "Running backward compatibility tests....."
  5. cd integration_tests
  6. echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  7. docker-compose -f docker-compose.yml -f masterV1.yml build
  8. docker-compose -f docker-compose.yml -f masterV1.yml run master
  9. docker-compose -f docker-compose.yml -f masterV1.yml down --remove-orphans
  10. docker-compose -f docker-compose.yml -f replicaV1.yml build
  11. docker-compose -f docker-compose.yml -f replicaV1.yml run master
  12. docker-compose -f docker-compose.yml -f replicaV1.yml down --remove-orphans
  13. cd ..
  14. echo "Done!"
  15. else
  16. echo "Skip backward compatibility tests..."
  17. fi