forked from NYPL-Simplified/circulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (40 loc) · 965 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
34
35
36
37
38
39
40
41
42
43
44
[tox]
envlist = py{36,37,38}-docker
skipsdist = true
[testenv]
deps = -r requirements-dev.txt
commands_pre =
docker: docker exec es elasticsearch-plugin -s install analysis-icu
docker: docker restart es
python -m textblob.download_corpora
commands =
pytest --disable-warnings {posargs:"tests"}
passenv = SIMPLIFIED_*
setenv =
docker: SIMPLIFIED_TEST_DATABASE=postgres://simplified_test:test@localhost:9005/simplified_circulation_test
docker: SIMPLIFIED_TEST_ELASTICSEARCH=http://localhost:9006
docker =
docker: es
docker: db
allowlist_externals =
docker: docker
python
[docker:db]
image = postgres:12
environment =
POSTGRES_USER=simplified_test
POSTGRES_PASSWORD=test
POSTGRES_DB=simplified_circulation_test
ports =
9005:5432/tcp
[docker:es]
image = elasticsearch:6.8.6
environment =
discovery.type=single-node
ports =
9006:9200/tcp
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38