This repository was archived by the owner on Apr 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtox.ini
More file actions
57 lines (52 loc) · 1.31 KB
/
tox.ini
File metadata and controls
57 lines (52 loc) · 1.31 KB
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
[tox]
envlist = py{36,37,38,39}-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: SIMPLIFIED_TEST_MINIO_ENDPOINT_URL=http://localhost:9007
docker: SIMPLIFIED_TEST_MINIO_USER=simplified
docker: SIMPLIFIED_TEST_MINIO_PASSWORD=12345678901234567890
docker =
docker: es
docker: db
docker: minio
allowlist_externals =
docker: docker
python
[docker:db]
image = postgres:9.6
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
[docker:minio]
image = bitnami/minio:latest
environment =
MINIO_ROOT_USER=simplified
MINIO_ROOT_PASSWORD=12345678901234567890
ports =
9007:9000/tcp
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39