1
0
mirror of https://github.com/life4/textdistance.git synced 2021-09-19 22:35:47 +03:00
Files
textdistance-similarity/.drone.star
2021-01-27 16:06:28 +01:00

52 lines
1.6 KiB
Plaintext

def main(ctx):
return dict(
kind="pipeline",
type="docker",
name="default",
trigger=dict(branch="master"),
steps=[
dict(
name="install task",
image="alpine:latest",
commands=[
"apk add --no-cache wget",
"wget https://taskfile.dev/install.sh",
"sh install.sh -- latest",
"rm install.sh",
],
),
step(env="pytest-pure", python="3.6"),
step(env="pytest-pure", python="3.7"),
step(env="pytest-pure", python="3.8"),
step(env="pytest-pure", python="3.9"),
step(env="pytest-external", python="3.6"),
step(env="pytest-external", python="3.7"),
step(env="pytest-external", python="3.8"),
step(env="pytest-external", python="3.9"),
step(env="flake8", python="3.7"),
],
)
def step(env, python):
result = dict(
name="{} (py{})".format(env, python),
image="python:{}-alpine".format(python),
depends_on=["install task"],
environment=dict(
# set coverage database file name to avoid conflicts between steps
COVERAGE_FILE=".coverage.{}.{}".format(env, python),
),
commands=[
"apk add curl git gcc libc-dev",
"./bin/task PYTHON_BIN=python3 VENVS=/opt/py{python}/ -f {env}:run".format(
python=python,
env=env,
),
],
)
return result