mirror of
https://github.com/alerta/alerta.git
synced 2025-01-27 18:39:04 +00:00
33 lines
568 B
INI
33 lines
568 B
INI
[tox]
|
|
envlist = py{36,37,38}-{postgres,mongodb}
|
|
skip_missing_interpreters=true
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
requests_mock
|
|
postgres: psycopg2
|
|
mongodb: pymongo
|
|
|
|
[testenv:postgres]
|
|
whitelist_externals =
|
|
createdb
|
|
dropdb
|
|
commands_pre =
|
|
- createdb alerta
|
|
commands = pytest -s {posargs} tests
|
|
commands_post =
|
|
- dropdb alerta
|
|
|
|
#passenv = *
|
|
setenv =
|
|
ALERTA_SVR_CONF_FILE =
|
|
DATABASE_URL = postgres:///alerta
|
|
|
|
[testenv:mongodb]
|
|
commands = pytest -s {posargs} tests
|
|
|
|
#passenv = *
|
|
setenv =
|
|
ALERTA_SVR_CONF_FILE =
|
|
DATABASE_URL = mongodb://127.0.0.1:27017/alerta
|