This commit is contained in:
parent
7be918c231
commit
435946f769
1 changed files with 66 additions and 60 deletions
18
.drone.yml
18
.drone.yml
|
|
@ -13,7 +13,7 @@ environment:
|
||||||
PRE_COMMIT_HOME: /drone/src/.cache/.pre-commit
|
PRE_COMMIT_HOME: /drone/src/.cache/.pre-commit
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: restore cache
|
- name: restore cache
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -31,20 +31,26 @@ steps:
|
||||||
- .venv
|
- .venv
|
||||||
- .cache/.pre-commit
|
- .cache/.pre-commit
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
pull: true
|
pull: true
|
||||||
image: git.roboces.dev/catalin/poetry:beta
|
image: git.roboces.dev/catalin/poetry:beta
|
||||||
commands:
|
commands:
|
||||||
- poetry config virtualenvs.in-project 1
|
- poetry config virtualenvs.in-project 1
|
||||||
- poetry install --with linters
|
- poetry install --with linters,test
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
pull: true
|
pull: true
|
||||||
image: git.roboces.dev/catalin/poetry:beta
|
image: git.roboces.dev/catalin/poetry:beta
|
||||||
commands:
|
commands:
|
||||||
- .venv/bin/pre-commit run --all-files --color always
|
- .venv/bin/pre-commit run --all-files --color always
|
||||||
|
|
||||||
- name: deploy
|
- name: tests
|
||||||
|
pull: true
|
||||||
|
image: git.roboces.dev/catalin/poetry:beta
|
||||||
|
commands:
|
||||||
|
- .venv/bin/pytest
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
pull: true
|
pull: true
|
||||||
image: git.roboces.dev/catalin/poetry:beta
|
image: git.roboces.dev/catalin/poetry:beta
|
||||||
commands:
|
commands:
|
||||||
|
|
@ -56,7 +62,7 @@ steps:
|
||||||
ref:
|
ref:
|
||||||
- refs/tags/v*
|
- refs/tags/v*
|
||||||
|
|
||||||
- name: rebuild cache
|
- name: rebuild cache
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue