130 lines
2.4 KiB
YAML
130 lines
2.4 KiB
YAML
- !Image
|
|
name: py36
|
|
from: &py36 !DockerImage python:3.6.0-slim
|
|
repository: localhost/grpclib/py36
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{runtime}}
|
|
runtime: !File "requirements/runtime.txt"
|
|
|
|
- !Image
|
|
name: test36
|
|
from: *py36
|
|
repository: localhost/grpclib/test36
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{test}}
|
|
test: !File "requirements/test.txt"
|
|
|
|
|
|
- !Image
|
|
name: py37
|
|
from: &py37 !DockerImage python:3.7.0-slim
|
|
repository: localhost/grpclib/py37
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{runtime}}
|
|
runtime: !File "requirements/runtime.txt"
|
|
|
|
- !Image
|
|
name: test37
|
|
from: *py37
|
|
repository: localhost/grpclib/test37
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{test}}
|
|
test: !File "requirements/test.txt"
|
|
|
|
- !Image
|
|
name: lint37
|
|
from: *py37
|
|
repository: localhost/grpclib/lint37
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{lint}}
|
|
lint: !File "requirements/lint.txt"
|
|
|
|
- !Image
|
|
name: check37
|
|
from: *py37
|
|
repository: localhost/grpclib/check37
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{check}}
|
|
check: !File "requirements/check.txt"
|
|
|
|
- !Image
|
|
name: docs37
|
|
from: *py37
|
|
repository: localhost/grpclib/docs37
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{docs}}
|
|
docs: !File "requirements/docs.txt"
|
|
|
|
|
|
- !Image
|
|
name: py38
|
|
from: &py38 !DockerImage python:3.8.0-slim
|
|
repository: localhost/grpclib/py38
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{runtime}}
|
|
runtime: !File "requirements/runtime.txt"
|
|
|
|
- !Image
|
|
name: test38
|
|
from: *py38
|
|
repository: localhost/grpclib/test38
|
|
tasks:
|
|
- run: pip3 install --no-cache-dir -r {{test}}
|
|
test: !File "requirements/test.txt"
|
|
|
|
|
|
- !Command
|
|
name: server
|
|
image: py38
|
|
run: python3 -m helloworld.server
|
|
network-name: server
|
|
environ:
|
|
PYTHONPATH: examples
|
|
ports:
|
|
- !Expose { port: 50051, as: 50051 }
|
|
|
|
- !Command
|
|
name: client
|
|
image: py38
|
|
run: python3 -m helloworld.client
|
|
environ:
|
|
PYTHONPATH: examples
|
|
|
|
- !Command
|
|
name: docs
|
|
image: docs37
|
|
run: sphinx-build -b html docs build
|
|
environ:
|
|
PYTHONPATH: .
|
|
|
|
- !Command
|
|
name: test36
|
|
image: test36
|
|
run: [py.test]
|
|
environ:
|
|
PYTHONPATH: .
|
|
|
|
- !Command
|
|
name: test37
|
|
image: test37
|
|
run: [py.test]
|
|
environ:
|
|
PYTHONPATH: .
|
|
|
|
- !Command
|
|
name: test38
|
|
image: test38
|
|
run: [py.test]
|
|
environ:
|
|
PYTHONPATH: .
|
|
|
|
- !Command
|
|
name: flake8
|
|
image: lint37
|
|
run: [flake8]
|
|
|
|
- !Command
|
|
name: mypy
|
|
image: check37
|
|
run: [mypy]
|