-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathvagga.yaml
184 lines (164 loc) · 4.33 KB
/
vagga.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
_defaults:
es-uid: &es-uid 999
containers:
py2-test:
setup:
- !Ubuntu bionic
- !Install [curl]
- !PipConfig
dependencies: true
- !Py2Requirements requirements.txt
- !Py2Requirements requirements_geo.txt
- !Py2Requirements requirements_test.txt
py3-test:
setup:
- !Ubuntu bionic
- !Install [curl]
- !PipConfig
dependencies: true
- !Py3Requirements requirements.txt
- !Py3Requirements requirements_geo.txt
- !Py3Requirements requirements_async.txt
- !Py3Requirements requirements_async_test.txt
- !Py3Requirements requirements_lint.txt
- !Py3Requirements requirements_test.txt
py2-sphinx:
setup:
- !Alpine v3.5
- !Install
- make
- !PipConfig
dependencies: true
- !Py2Requirements requirements.txt
- !Py2Requirements requirements_test.txt
- !Py2Requirements requirements_doc.txt
py3-sphinx:
setup:
- !Alpine v3.5
- !Install
- make
- !PipConfig
dependencies: true
- !Py3Requirements requirements.txt
- !Py3Requirements requirements_test.txt
- !Py3Requirements requirements_doc.txt
bump:
setup:
- !Alpine v3.8
- !Install
- git
- !PipConfig
dependencies: true
- !Py3Install
- bumpversion
bench:
environ:
HOME: /work
PYTHONPATH: /work
setup:
- !Alpine v3.4
- !PipConfig
dependencies: true
- !Py3Requirements requirements.txt
- !Py3Install [coverage]
elastic-5x:
setup:
- !Ubuntu bionic
- !UbuntuUniverse
# elastic PGP & Repo
- !Install [gnupg]
- !AptTrust
server: pgp.mit.edu
keys: [D88E42B4]
- !UbuntuRepo
url: https://artifacts.elastic.co/packages/5.x/apt
suite: stable
components: [main]
- !Env
ES_UID: *es-uid
- !Sh |
groupadd -g $ES_UID elasticsearch
useradd -u $ES_UID -g elasticsearch -d /usr/share/elasticsearch elasticsearch
- !Install
- ca-certificates
- ca-certificates-java
- openjdk-8-jre-headless
- elasticsearch=5.6.14
volumes:
/var/lib/elasticsearch: !Tmpfs
commands:
test-py2: !Command
description: Run tests with Python2
container: py2-test
run: [py.test]
test-py3: !Command
description: Run tests with Python3
container: py3-test
run: [py.test]
flake8: !Command
description: Run flake8 linter
container: py3-test
run: [flake8, elasticmagic, tests_integ]
bump: !Command
description: Bump version
container: bump
run: [bumpversion]
test-integ-5x: !Supervise
options: |
Usage:
vagga test-integ-5x [options] [--tests=<tests>] [--] [<pytest-options>...]
Options:
--tests=<tests> Tests to run
<pytest-options> Pytest options
children:
elastic-5x: !Command
container: elastic-5x
user-id: *es-uid
group-id: *es-uid
work-dir: /usr/share/elasticsearch
run: |
./bin/elasticsearch \
-Enetwork.host=_local_ \
-Epath.conf=/etc/elasticsearch \
-Epath.scripts=/etc/elasticsearch/scripts \
-Epath.data=/var/lib/elasticsearch/data \
-Epath.logs=/var/lib/elasticsearch/logs
test: !Command
container: py3-test
run: |
./scripts/wait_es.sh ${ES_URL:-localhost:9200}
TESTS=${VAGGAOPT_TESTS:-tests_integ}
eval py.test $TESTS $VAGGACLI_PYTEST_OPTIONS
_py2-cov: !Command
container: py2-test
run: [py.test, --cov]
cover: !Command
prerequisites: [_py2-cov]
container: py3-test
run: [py.test, --cov, --cov-append]
doctest: !Command
description: Run doctests
container: py3-sphinx
work-dir: docs
run: [make, doctest]
doc: !Command
description: Build documentation
container: py3-sphinx
work-dir: docs
prerequisites: [doctest]
run: [make, html]
doctest-py2: !Command
description: Run doctests
container: py2-sphinx
work-dir: docs
run: [make, doctest]
doc-py2: !Command
description: Build documentation
container: py2-sphinx
work-dir: docs
prerequisites: [doctest-py2]
run: [make, html]
bench: !Command
description: Run benchmarks
container: bench
run: [python3, benchmark/run.py]