mirror of
https://github.com/docker/compose.git
synced 2025-10-17 05:18:43 +02:00
In particular it includes: - some extension of CONTRIBUTING.md - one fix for Python 2.6 in tests/integration/cli_test.py - one fix for Python 3.3 in tests/integration/service_test.py - removal of unused imports Make stream_output Python 3-compatible Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
29 lines
744 B
Bash
Executable File
29 lines
744 B
Bash
Executable File
#!/bin/bash
|
|
# This should be run inside a container built from the Dockerfile
|
|
# at the root of the repo - script/test will do it automatically.
|
|
|
|
set -e
|
|
|
|
>&2 echo "Running lint checks"
|
|
tox -e pre-commit
|
|
|
|
if [ "$DOCKER_VERSIONS" == "" ]; then
|
|
DOCKER_VERSIONS="default"
|
|
elif [ "$DOCKER_VERSIONS" == "all" ]; then
|
|
DOCKER_VERSIONS="$ALL_DOCKER_VERSIONS"
|
|
fi
|
|
|
|
for version in $DOCKER_VERSIONS; do
|
|
>&2 echo "Running tests against Docker $version"
|
|
docker run \
|
|
--rm \
|
|
--privileged \
|
|
--volume="/var/lib/docker" \
|
|
--volume="${COVERAGE_DIR:-$(pwd)/coverage-html}:/code/coverage-html" \
|
|
-e "DOCKER_VERSION=$version" \
|
|
-e "DOCKER_DAEMON_ARGS" \
|
|
--entrypoint="script/dind" \
|
|
"$TAG" \
|
|
script/wrapdocker tox "$@"
|
|
done
|