forked from sodadata/soda-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
69 lines (62 loc) · 1.63 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[tox]
envlist =
[testenv]
skip_install = true
description = run the tests with pytest under {basepython}
docker =
postgres
sqlserver
mysql
setenv =
PIP_DISABLE_PIP_VERSION_CHECK = 1
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
{py27,pypy}: PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
passenv = *
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/dev-requirements.txt
commands =
pytest \
{posargs}
[pytest]
addopts = --verbose
[docker:postgres]
image=postgres:14.2-alpine
environment =
POSTGRES_USER=sodasql
POSTGRES_DB=sodasql
POSTGRES_HOST_AUTH_METHOD=trust
ports = 5432:5432/tcp
healthcheck_cmd = 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
[docker:sqlserver]
image=mcr.microsoft.com/mssql/server:2022-latest
environment =
ACCEPT_EULA=Y
SA_PASSWORD=Password1!
ports = 1433:1433/tcp
healthcheck_cmd = /opt/mssql-tools/bin/sqlcmd \
-S localhost -U sa -P $SA_PASSWORD -Q "SELECT 1"
healthcheck_timeout = 2
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 1
[docker:mysql]
image= mysql:8
environment =
MYSQL_DATABASE=sodacore
MYSQL_USER=sodacore
MYSQL_PASSWORD=sodacore
MYSQL_ROOT_PASSWORD=sodacore
ports = 3306:3306/tcp
healthcheck_cmd = mysql --user=root --password=sodacore --execute "SHOW DATABASES;"
healthcheck_timeout = 2
healthcheck_retries = 30
healthcheck_interval = 10
healthcheck_start_period = 1