forked from sodadata/soda-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
33 lines (31 loc) · 867 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
24
25
26
27
28
29
30
31
32
33
[tox]
envlist =
[testenv]
skip_install = true
passenv = *
docker = postgres
commands =
python -m pytest {toxinidir}/tests \
--junitxml=TEST_tox_{envname}.xml \
--html=./reports/tests/index.html \
--cov=sodasql tests --cov-report=html:reports/coverage \
{posargs}
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/dev-requirements.txt
[docker:postgres]
image=postgres:9.6.17-alpine
environment =
POSTGRES_USER=sodasql
POSTGRES_PASSWORD=sodasql
POSTGRES_DB=sodasql
POSTGRES_HOST_AUTH_METHOD=trust
ports = 5432:5432/tcp
healthcheck_cmd = PGPASSWORD=$POSTGRES_PASSWORD psql \
--user=$POSTGRES_USER --dbname=$POSTGRES_DB \
--host=127.0.0.1 --quiet --no-align --tuples-only \
-1 --command="SELECT 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1