#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
|
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.10-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.10-alpine'
|
||||||
commands:
|
commands:
|
||||||
- python -m venv .venv
|
#- 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
|
- 'pylama $(git diff --name-only --diff-filter=ACMRTUXB ${DRONE_TARGET_BRANCH} | grep -E "(.py$)")'
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
include:
|
include:
|
||||||
|
@ -34,19 +31,19 @@ steps:
|
||||||
exclude: master
|
exclude: master
|
||||||
|
|
||||||
|
|
||||||
---
|
#---
|
||||||
kind: pipeline
|
#kind: pipeline
|
||||||
type: docker
|
#type: docker
|
||||||
name: deploy
|
#name: deploy
|
||||||
|
#
|
||||||
steps:
|
#steps:
|
||||||
- name: deploy
|
# - name: deploy
|
||||||
image: alpine
|
# image: alpine
|
||||||
commands:
|
# commands:
|
||||||
- 'echo "TODO: implement deploy"'
|
# - 'echo "TODO: implement deploy"'
|
||||||
when:
|
# when:
|
||||||
branch: master
|
# branch: master
|
||||||
|
#
|
||||||
depends_on:
|
#depends_on:
|
||||||
- build
|
# - build
|
||||||
- code-audit
|
# - code-audit
|
||||||
|
|
Loading…
Reference in a new issue