-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yml
76 lines (69 loc) · 2.23 KB
/
config.yml
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
70
71
72
73
74
75
76
version: 2.1
commands:
runtests:
parameters:
toxcommand:
type: string
default: tox
steps:
- checkout
- run:
name: install tox
command: >
pip install --upgrade --force-reinstall tox pip
- run:
name: version checks
command: |
python --version
pip --version
tox --version
- run:
name: run tox
command: << parameters.toxcommand >>
- store_test_results:
path: .circleci/test-reports/
- run:
name: push code coverage
command: bash <(curl -s https://codecov.io/bash) -X coveragepy -t "1c18e756-0bd0-4106-98be-b2fedf1f88df"
jobs:
postgres:
docker:
- image: level12/python-test-multi
environment:
SQLALCHEMY_DATABASE_URI: "postgresql://postgres@localhost:54321/postgres"
- image: postgres:latest
environment:
POSTGRES_USER: postgres
# Ok for local dev, potentially UNSAFE in other applications. Don't blindly copy & paste
# without considering implications.
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: postgres
PGPORT: 54321
steps:
- runtests
sqlite:
docker:
- image: level12/python-test-multi
environment:
SQLALCHEMY_DATABASE_URI: "sqlite://"
steps:
- runtests
mssql:
docker:
- image: level12/python-test-multi
environment:
SQLALCHEMY_DATABASE_URI: "mssql+pyodbc_mssql://SA:Password12!@localhost:14331/tempdb?driver=ODBC+Driver+17+for+SQL+Server"
- image: mcr.microsoft.com/mssql/server
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: "Password12!"
MSSQL_TCP_PORT: 14331
steps:
- runtests
workflows:
version: 2
build:
jobs:
- postgres
- sqlite
- mssql