2015-02-23 12:01:37 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# See CONTRIBUTING.md for usage.
|
|
|
|
|
2014-09-30 22:48:01 +02:00
|
|
|
set -ex
|
2015-02-23 12:01:37 +01:00
|
|
|
|
2015-01-20 12:27:10 +01:00
|
|
|
docker build -t docker-compose .
|
2015-02-23 12:01:37 +01:00
|
|
|
docker run --privileged --rm --entrypoint flake8 docker-compose compose
|
|
|
|
|
|
|
|
docker build -f Dockerfile.tests -t docker-compose-tests .
|
|
|
|
|
|
|
|
if [ "$DOCKER_VERSIONS" == "" ]; then
|
|
|
|
DOCKER_VERSIONS="1.5.0"
|
|
|
|
elif [ "$DOCKER_VERSIONS" == "all" ]; then
|
|
|
|
DOCKER_VERSIONS="1.3.3 1.4.1 1.5.0"
|
|
|
|
fi
|
|
|
|
|
|
|
|
for version in $DOCKER_VERSIONS; do
|
|
|
|
docker run --privileged --rm -e "DOCKER_VERSION=$version" docker-compose-tests nosetests "$@"
|
|
|
|
done
|