This commit is contained in:
parent
f75c44cc1c
commit
2fd72c199b
14
.drone.yml
14
.drone.yml
@ -4,7 +4,7 @@
|
|||||||
################
|
################
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: run_tests
|
name: test
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -36,23 +36,23 @@ steps:
|
|||||||
- name: cd
|
- name: cd
|
||||||
image: python:3.7.2
|
image: python:3.7.2
|
||||||
commands:
|
commands:
|
||||||
# Install dependencies
|
- git fetch
|
||||||
- pip install --no-cache-dir poetry
|
- pip install --no-cache-dir poetry
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry run semantic-release publish
|
- poetry run semantic-release publish
|
||||||
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
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
depends_on:
|
depends_on:
|
||||||
- run_tests
|
- test
|
||||||
volumes:
|
volumes:
|
||||||
- name: poetry_cache
|
- name: poetry_cache
|
||||||
host:
|
host:
|
||||||
path: /tmp/cache/drone/pypoetry
|
path: /tmp/cache/drone/pypoetry
|
||||||
|
Loading…
Reference in New Issue
Block a user