forked from tox-dev/tox-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.sh
More file actions
executable file
·30 lines (22 loc) · 818 Bytes
/
ci.sh
File metadata and controls
executable file
·30 lines (22 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e
set -x
tox_version=$1
docker_version=$2
if [ "$tox_version" = "tox-4.x" ]; then
mypy_target=mypy-tox4
else
mypy_target=mypy-tox3
fi
# our tox.ini sets up volumes within .tox, so make sure it exists
# before trying to run tox...
mkdir -p .tox
pip install --constraint $tox_version --constraint $docker_version -r dev-requirements.txt
pip install --constraint $tox_version --constraint $docker_version .
pip show tox tox-docker docker
python tox_docker/tests/capture_containers_and_volumes.py .
tox -e integration
python tox_docker/tests/assert_containers_and_volumes_unchanged.py .
tox -e $mypy_target
echo "testing health check failure handling, an ERROR is expected:"
tox -e healthcheck-failing 2>&1 | grep "'toxdocker/healthcheck' (from 'healthcheck-failing') failed health check"