You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
702 B
YAML
39 lines
702 B
YAML
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
|
|
|
|
|
|
volumes:
|
|
- name: shared
|
|
temp: {}
|
|
- name: docker-cache
|
|
host:
|
|
path: /var/cache/${DRONE_REPO_NAME}/docker |