This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
drone-cleanup-agents/.drone.yml

167 lines
2.7 KiB
YAML
Raw Normal View History

2019-12-18 19:24:58 +00:00
---
kind: pipeline
name: lint
platform:
os: linux
arch: amd64
steps:
2021-12-21 09:29:13 +00:00
- name: flake8
pull: always
image: python:3.10
2021-12-21 09:29:13 +00:00
commands:
- pip install -r test-requirements.txt -qq
- pip install -qq .
- flake8 ./cleanupagents
environment:
PY_COLORS: 1
2019-12-18 19:24:58 +00:00
trigger:
ref:
2021-12-21 09:29:13 +00:00
- refs/heads/master
- refs/tags/**
- refs/pull/**
2019-12-18 19:24:58 +00:00
---
kind: pipeline
name: test
platform:
os: linux
arch: amd64
steps:
- name: python37-pytest
2021-12-21 09:29:13 +00:00
pull: always
image: python:3.7
2021-12-21 09:29:13 +00:00
commands:
- pip install -r test-requirements.txt -qq
- pip install -qq .
- drone-cleanup-agents --help
environment:
PY_COLORS: 1
depends_on:
- clone
- name: python38-pytest
2021-12-21 09:29:13 +00:00
pull: always
image: python:3.8
2021-12-21 09:29:13 +00:00
commands:
- pip install -r test-requirements.txt -qq
- pip install -qq .
- drone-cleanup-agents --help
environment:
PY_COLORS: 1
depends_on:
- clone
- name: python39-pytest
2021-12-21 09:29:13 +00:00
pull: always
image: python:3.9
2021-12-21 09:29:13 +00:00
commands:
- pip install -r test-requirements.txt -qq
- pip install -qq .
- drone-cleanup-agents --help
environment:
PY_COLORS: 1
depends_on:
- clone
- name: python310-pytest
2021-12-21 09:29:13 +00:00
pull: always
image: python:3.10
2021-12-21 09:29:13 +00:00
commands:
- pip install -r test-requirements.txt -qq
- pip install -qq .
- drone-cleanup-agents --help
environment:
PY_COLORS: 1
depends_on:
- clone
2019-12-18 19:24:58 +00:00
trigger:
ref:
2021-12-21 09:29:13 +00:00
- refs/heads/master
- refs/tags/**
- refs/pull/**
2019-12-18 19:24:58 +00:00
depends_on:
2021-12-21 09:29:13 +00:00
- lint
2019-12-18 19:24:58 +00:00
---
kind: pipeline
name: security
platform:
os: linux
arch: amd64
steps:
2021-12-21 09:29:13 +00:00
- name: bandit
pull: always
image: python:3.10
2021-12-21 09:29:13 +00:00
commands:
- pip install -r test-requirements.txt -qq
- pip install -qq .
- bandit -r ./cleanupagents -x ./cleanupagents/tests
environment:
PY_COLORS: 1
2019-12-18 19:24:58 +00:00
trigger:
ref:
2021-12-21 09:29:13 +00:00
- refs/heads/master
- refs/tags/**
- refs/pull/**
2019-12-18 19:24:58 +00:00
depends_on:
2021-12-21 09:29:13 +00:00
- test
2019-12-18 19:24:58 +00:00
---
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
2021-12-21 09:29:13 +00:00
- name: build
pull: always
image: python:3.10
2021-12-21 09:29:13 +00:00
commands:
- python setup.py sdist bdist_wheel
- name: checksum
pull: always
image: alpine
commands:
- cd dist/ && sha256sum * > sha256sum.txt
- name: publish-gitea
pull: always
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.owncloud.services
files:
- dist/*
- sha256sum.txt
note: CHANGELOG.md
title: ${DRONE_TAG}
when:
ref:
- refs/tags/**
2019-12-18 19:24:58 +00:00
trigger:
ref:
2021-12-21 09:29:13 +00:00
- refs/heads/master
- refs/tags/**
- refs/pull/**
2019-12-18 19:24:58 +00:00
depends_on:
2021-12-21 09:29:13 +00:00
- security
2019-12-18 19:24:58 +00:00
...