fix(Dockerfile): add timeout, remove auto distmode

This commit is contained in:
EvB 2016-12-28 14:22:49 -05:00
parent 72191bbd37
commit 86a40d02c7
2 changed files with 5 additions and 2 deletions

View file

@ -158,11 +158,13 @@ RUN if [ "$RUN_TESTS" = true ]; then \
fi
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
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
RUN PYTHONPATH=. venv/bin/alembic heads | grep -E '^[0-9a-f]+ \(head\)$' > ALEMBIC_HEAD