-
Notifications
You must be signed in to change notification settings - Fork 50
/
tox.ini
54 lines (51 loc) · 1.15 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
[tox]
envlist = {py39, py310}-{cover,nocov}-{linux}
isolated_build = true
skip_missing_interpreters = true
[docker:sqlserver]
image = mcr.microsoft.com/mssql/server:2019-latest
expose =
TAP_MSSQL_PORT=1433/tcp
environment =
ACCEPT_EULA=y
MSSQL_SA_PASSWORD=testDatabase1
MSSQL_TCP_PORT=1433
healthcheck_cmd = /opt/mssql-tools18/bin/sqlcmd \
-U SA -P $MSSQL_SA_PASSWORD \
-No \
-q "select 1"
healthcheck_timeout = 1
healthcheck_retries = 30
healthcheck_interval = 1
healthcheck_start_period = 30
[testenv]
docker =
sqlserver
require_locked_deps = true
locked_deps =
dataclasses
pytest
pytest-cov
toml
wheel =
cover: false
nocover: true
setenv =
APPDATA = ''
allowlist_externals =
echo
pytest
poetry
commands =
echo {env:APPDATA}
echo Docker Mapped Port 1433/tcp to {env:TAP_MSSQL_PORT}
pip install --upgrade pip virtualenv
poetry install
poetry run pytest --cov-report=xml:coverage-reports/coverage.xml --cov-report term-missing tests/test_tap_mssql.py
[testenv:package]
skip_install = True
deps =
twine
commands =
python3 -m poetry build
python3 -m twine check dist/*