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.
32 lines
590 B
YAML
32 lines
590 B
YAML
1 year ago
|
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
|