forked from pytest-docker-compose/pytest-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
23 lines (22 loc) · 789 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[tox]
envlist = py{35,36}-pytest{3,4,5,6}
[testenv]
deps =
pytest3: pytest>=3,<4
pytest4: pytest>=4,<5
pytest5: pytest>=5,<6
pytest6: pytest>=6,<7
docker-compose==1.28
pycodestyle
mypy
whitelist_externals=
bash
commands=
pycodestyle --config .pycodestyle src
mypy --namespace-packages --ignore-missing-imports src
bash -c '! pytest -m should_fail'
pytest
pytest -m multiple_compose_files --docker-compose ./tests/pytest_docker_compose_tests/my_network,./tests/pytest_docker_compose_tests/my_network/extra-service.yml
docker-compose -f tests/pytest_docker_compose_tests/my_network/docker-compose.yml up -d
pytest --use-running-containers
docker-compose -f tests/pytest_docker_compose_tests/my_network/docker-compose.yml down