diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ab73051 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: skip_tls_clone + image: plugins/git + settings: + depth: 10 + skip_verify: true + +- name: setup-virtualenv + image: python:3.7-alpine + commands: + - pip install virtualenv + - virtualenv /tmp/shared/.venv + - source /tmp/shared/.venv/bin/activate + - pip install -r requirements.txt + volumes: + - name: shared + path: /tmp/shared + +- name: test + image: python:3.7-alpine + commands: + - source /tmp/shared/.venv/bin/activate + - make test + - echo $$DRONE_COMMIT_SHA > .tags + volumes: + - name: shared + path: /tmp/shared