fix(Dockerfile): add timeout, remove auto distmode
This commit is contained in:
parent
72191bbd37
commit
86a40d02c7
2 changed files with 5 additions and 2 deletions
|
@ -158,11 +158,13 @@ RUN if [ "$RUN_TESTS" = true ]; then \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN if [ "$RUN_TESTS" = true ]; then \
|
RUN if [ "$RUN_TESTS" = true ]; then \
|
||||||
TEST=true PYTHONPATH="." venv/bin/py.test --verbose --show-count -x --color=no test ; \
|
TEST=true PYTHONPATH="." venv/bin/py.test --timeout=3600 --verbose \
|
||||||
|
--show-count -x --color=no test; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN if [ "$RUN_TESTS" = true ]; then \
|
RUN if [ "$RUN_TESTS" = true ]; then \
|
||||||
TEST=true PYTHONPATH="." venv/bin/py.test --verbose --show-count -n auto -x --color=no test/registry_tests.py ; \
|
TEST=true PYTHONPATH="." venv/bin/py.test --timeout=3600 --verbose \
|
||||||
|
--show-count -x --color=no test/registry_tests.py ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN PYTHONPATH=. venv/bin/alembic heads | grep -E '^[0-9a-f]+ \(head\)$' > ALEMBIC_HEAD
|
RUN PYTHONPATH=. venv/bin/alembic heads | grep -E '^[0-9a-f]+ \(head\)$' > ALEMBIC_HEAD
|
||||||
|
|
|
@ -4,4 +4,5 @@ python-coveralls
|
||||||
pytest-flask
|
pytest-flask
|
||||||
pytest-runner
|
pytest-runner
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
|
pytest-timeout
|
||||||
-e git+https://github.com/ant31/pytest-sugar.git#egg=pytest-sugar
|
-e git+https://github.com/ant31/pytest-sugar.git#egg=pytest-sugar
|
||||||
|
|
Reference in a new issue