#20 Pipelines merged. Deploy pipeline commented for now. Trying to check only changed code.
This commit is contained in:
parent
13bf132864
commit
83a3c0b262
51
.drone.yml
51
.drone.yml
|
@ -3,29 +3,26 @@
|
|||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
name: app-check
|
||||
|
||||
steps:
|
||||
- name: build-app
|
||||
- name: build-deps
|
||||
image: 'python:3.10-alpine'
|
||||
commands:
|
||||
- python -m venv .venv
|
||||
- source ./.venv/bin/activate
|
||||
- pip install -r requirements.txt
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: code-audit
|
||||
|
||||
steps:
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
- pull_request
|
||||
- name: pylama
|
||||
image: 'python:3.10-alpine'
|
||||
commands:
|
||||
- python -m venv .venv
|
||||
#- python -m venv .venv
|
||||
- source ./.venv/bin/activate
|
||||
- 'pip install pylama pylama\[all\] > /dev/null'
|
||||
- pylama
|
||||
- 'pylama $(git diff --name-only --diff-filter=ACMRTUXB ${DRONE_TARGET_BRANCH} | grep -E "(.py$)")'
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
|
@ -34,19 +31,19 @@ steps:
|
|||
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
|
||||
#---
|
||||
#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