forked from cockroachdb/sqlalchemy-cockroachdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
91 lines (78 loc) · 1.8 KB
/
circle.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: 2
.x-cockroach-2.1: &cockroach-2-1
image: cockroachdb/cockroach:v2.1.11
command: start --insecure
.x-cockroach-19.1: &cockroach-19-1
image: cockroachdb/cockroach:v19.1.9
command: start --insecure
.x-cockroach-19.2: &cockroach-19-2
image: cockroachdb/cockroach:v19.2.7
command: start --insecure
.x-cockroach-20.1: &cockroach-20-1
image: cockroachdb/cockroach:v20.1.0
command: start --insecure
.x-tox-version: &tox-version
TOX_VERSION: 3.12.1
.x-py37: &py37
environment:
TOXENV: py37
<<: *tox-version
.x-test-steps: &test-steps
steps:
- checkout
- run:
name: Wait for database
command: dockerize -wait tcp://127.0.0.1:26257 -timeout 120s
- run:
name: Install testrunner
command: pip install --user tox==${TOX_VERSION}
- run:
name: Test
command: ${HOME}/.local/bin/tox
jobs:
test-py37-2.1:
docker:
- image: circleci/python:3.7
- *cockroach-2-1
<<: *test-steps
<<: *py37
test-py37-19.1:
docker:
- image: circleci/python:3.7
- *cockroach-19-1
<<: *test-steps
<<: *py37
test-py37-19.2:
docker:
- image: circleci/python:3.7
- *cockroach-19-2
<<: *test-steps
<<: *py37
test-py37-20.1:
docker:
- image: circleci/python:3.7
- *cockroach-20-1
<<: *test-steps
<<: *py37
lint:
docker:
- image: circleci/python:3.7
environment:
<<: *tox-version
steps:
- checkout
- run:
name: Install testrunner
command: pip install --user tox==${TOX_VERSION}
- run:
name: Lint
command: ${HOME}/.local/bin/tox -e lint
workflows:
version: 2
test-and-lint:
jobs:
- test-py37-2.1
- test-py37-19.1
- test-py37-19.2
- test-py37-20.1
- lint