forked from vmagamedov/grpclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pi.yaml
92 lines (81 loc) · 1.79 KB
/
pi.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
- !Image
name: env36
from: !DockerImage python:3.6.0-slim
repository: localhost/grpclib/env36
tasks:
- run: pip3 install --no-cache-dir h2==3.1.0
- run: pip3 install --no-cache-dir -r {{reqs}}
reqs: !File "requirements.txt"
- !Image
name: env37
from: !DockerImage python:3.7.0-slim
repository: localhost/grpclib/env37
tasks:
- run: pip3 install --no-cache-dir h2==3.1.0
- run: pip3 install --no-cache-dir -r {{reqs}}
reqs: !File "requirements.txt"
- !Image
name: env38
from: !DockerImage python:3.8.0a4-slim
repository: localhost/grpclib/env38
tasks:
- run: pip3 install --no-cache-dir h2==3.1.0
- run: pip3 install --no-cache-dir -r {{reqs}}
reqs: !File "requirements.txt"
- !Image
name: docs
from: env37
repository: localhost/grpclib/docs
tasks:
- run: pip3 install --no-cache-dir h2==3.1.0
- run: pip3 install --no-cache-dir -r {{reqs}}
reqs: !File "docs/requirements.txt"
- !Image
name: flake8
from: !DockerImage python:3.6.0-slim
repository: localhost/grpclib/flake8
tasks:
- run: pip3 install --no-cache-dir flake8==3.7.7
- !Command
name: server
image: env36
run: python3 -m helloworld.server
network-name: server
environ:
PYTHONPATH: examples
ports:
- !Expose { port: 50051, as: 50051 }
- !Command
name: client
image: env36
run: python3 -m helloworld.client
environ:
PYTHONPATH: examples
- !Command
name: build docs
image: docs
run: sphinx-build -b html docs build
environ:
PYTHONPATH: .
- !Command
name: test36
image: env36
run: py.test
environ:
PYTHONPATH: .
- !Command
name: test37
image: env37
run: py.test
environ:
PYTHONPATH: .
- !Command
name: test38
image: env38
run: py.test
environ:
PYTHONPATH: .
- !Command
name: lint
image: flake8
run: flake8