test-versions 646 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. # This should be run inside a container built from the Dockerfile
  3. # at the root of the repo - script/test will do it automatically.
  4. set -e
  5. >&2 echo "Running lint checks"
  6. flake8 compose
  7. if [ "$DOCKER_VERSIONS" == "" ]; then
  8. DOCKER_VERSIONS="1.5.0"
  9. elif [ "$DOCKER_VERSIONS" == "all" ]; then
  10. DOCKER_VERSIONS="$ALL_DOCKER_VERSIONS"
  11. fi
  12. for version in $DOCKER_VERSIONS; do
  13. >&2 echo "Running tests against Docker $version"
  14. docker-1.5.0 run \
  15. --rm \
  16. --privileged \
  17. --volume="/var/lib/docker" \
  18. -e "DOCKER_VERSION=$version" \
  19. --entrypoint="script/dind" \
  20. "$TAG" \
  21. script/wrapdocker nosetests "$@"
  22. done