53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
# https://docs.drone.io/pipeline/overview/
|
|
# https://docs.drone.io/pipeline/configuration/
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: app-check
|
|
|
|
steps:
|
|
- name: build-deps
|
|
image: 'python:3-alpine'
|
|
commands:
|
|
- python -m venv .venv
|
|
- source ./.venv/bin/activate
|
|
- pip install -r requirements.txt
|
|
when:
|
|
event:
|
|
include:
|
|
- pull_request
|
|
- name: pylama
|
|
image: 'python:3-alpine'
|
|
commands:
|
|
- apk update > /dev/null && apk add git > /dev/null
|
|
#- python -m venv .venv
|
|
#- source ./.venv/bin/activate
|
|
#- 'pip install pylama pylama\[all\] > /dev/null'
|
|
- 'echo ${DRONE_SOURCE_BRANCH}'
|
|
- 'git --no-pager diff --name-only ${DRONE_TARGET_BRANCH} | xargs echo'
|
|
#- 'git --no-pager diff --name-only --diff-filter=ACMRTUXB ${DRONE_TARGET_BRANCH} ${DRONE_SOURCE_BRANCH} | xargs pylama'
|
|
when:
|
|
event:
|
|
include:
|
|
- pull_request
|
|
branch:
|
|
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
|