зеркало из https://github.com/mozilla/treeherder.git
Run unit tests on CI with postgres
This commit is contained in:
Родитель
f17959022e
Коммит
1e0d51a410
|
@ -67,6 +67,7 @@ jobs:
|
|||
pip install --upgrade pip
|
||||
pip install tox
|
||||
tox -e docker
|
||||
tox -e docker-postgres
|
||||
- codecov/upload
|
||||
|
||||
test-docker-build:
|
||||
|
|
8
tox.ini
8
tox.ini
|
@ -49,5 +49,13 @@ commands_pre =
|
|||
commands =
|
||||
docker-compose run -e TREEHERDER_DEBUG=False backend bash -c "pytest --cov --cov-report=xml tests/ --runslow -p no:unraisableexception"
|
||||
|
||||
[testenv:docker-postgres]
|
||||
whitelist_externals=
|
||||
docker-compose
|
||||
commands_pre =
|
||||
docker-compose build
|
||||
commands =
|
||||
docker-compose run -e TREEHERDER_DEBUG=False -e DATABASE_URL=psql://postgres:mozilla1234@localhost/treeherder backend bash -c "pytest --cov --cov-report=xml tests/ --runslow -p no:unraisableexception"
|
||||
|
||||
[flake8]
|
||||
per-file-ignores = treeherder/model/models.py:E402
|
||||
|
|
Загрузка…
Ссылка в новой задаче