#20 Pipelines merged. Deploy pipeline removed for now. Pylama now checks only changed files.
This commit is contained in:
parent
2e44df0bbd
commit
de4491fa02
42
.drone.yml
42
.drone.yml
|
@ -3,50 +3,30 @@
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build
|
name: app-check
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-app
|
- name: build-deps
|
||||||
image: 'python:3.10-alpine'
|
image: 'python:3-alpine'
|
||||||
commands:
|
commands:
|
||||||
- python -m venv .venv
|
- python -m venv .venv
|
||||||
- source ./.venv/bin/activate
|
- source ./.venv/bin/activate
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
when:
|
||||||
---
|
event:
|
||||||
kind: pipeline
|
include:
|
||||||
type: docker
|
- pull_request
|
||||||
name: code-audit
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: pylama
|
- name: pylama
|
||||||
image: 'python:3.10-alpine'
|
image: 'python:3-alpine'
|
||||||
commands:
|
commands:
|
||||||
- python -m venv .venv
|
- apk update > /dev/null && apk add git > /dev/null
|
||||||
|
#- python -m venv .venv
|
||||||
- source ./.venv/bin/activate
|
- source ./.venv/bin/activate
|
||||||
- 'pip install pylama pylama\[all\] > /dev/null'
|
- 'pip install pylama pylama\[all\] > /dev/null'
|
||||||
- pylama
|
- 'git --no-pager diff --name-only origin/${DRONE_TARGET_BRANCH} | xargs pylama'
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
include:
|
include:
|
||||||
- pull_request
|
- pull_request
|
||||||
branch:
|
branch:
|
||||||
exclude: master
|
exclude: master
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: deploy
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: deploy
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- 'echo "TODO: implement deploy"'
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
- code-audit
|
|
||||||
|
|
Loading…
Reference in a new issue