This commit is contained in:
parent
4c920b2717
commit
5366d1af93
28
.drone.yml
28
.drone.yml
@ -4,12 +4,12 @@
|
|||||||
################
|
################
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test
|
name: default
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Run tests against Python with pytest
|
# Run tests against Python with pytest
|
||||||
- name: ci
|
- name: test
|
||||||
image: python:3.7.2
|
image: python:3.7.2
|
||||||
commands:
|
commands:
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
@ -23,32 +23,24 @@ steps:
|
|||||||
- name: poetry_cache
|
- name: poetry_cache
|
||||||
path: /root/.cache/pypoetry
|
path: /root/.cache/pypoetry
|
||||||
|
|
||||||
volumes:
|
- name: publish
|
||||||
- name: poetry_cache
|
|
||||||
host:
|
|
||||||
path: /tmp/cache/drone/pypoetry
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: publish
|
|
||||||
type: docker
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: cd
|
|
||||||
image: python:3.7.2
|
image: python:3.7.2
|
||||||
commands:
|
commands:
|
||||||
- git fetch
|
# Install dependencies
|
||||||
- pip install --no-cache-dir poetry
|
|
||||||
- poetry install
|
|
||||||
- poetry run semantic-release publish
|
- poetry run semantic-release publish
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
environment:
|
environment:
|
||||||
LOGLEVEL: info
|
LOGLEVEL: info
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: poetry_cache
|
- name: poetry_cache
|
||||||
path: /root/.cache/pypoetry
|
path: /root/.cache/pypoetry
|
||||||
depends_on:
|
|
||||||
- test
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: poetry_cache
|
- name: poetry_cache
|
||||||
host:
|
host:
|
||||||
|
Loading…
Reference in New Issue
Block a user