Merge pull request #12 from thegeeklab/renovate/configure
Configure Renovate
This commit is contained in:
commit
af395c99e5
|
@ -24,7 +24,7 @@ local PipelineLint = {
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'flake8',
|
name: 'flake8',
|
||||||
image: 'python:3.8',
|
image: 'python:3.9',
|
||||||
environment: {
|
environment: {
|
||||||
PY_COLORS: 1,
|
PY_COLORS: 1,
|
||||||
},
|
},
|
||||||
|
@ -52,6 +52,7 @@ local PipelineTest = {
|
||||||
PythonVersion(pyversion='3.6'),
|
PythonVersion(pyversion='3.6'),
|
||||||
PythonVersion(pyversion='3.7'),
|
PythonVersion(pyversion='3.7'),
|
||||||
PythonVersion(pyversion='3.8'),
|
PythonVersion(pyversion='3.8'),
|
||||||
|
PythonVersion(pyversion='3.9'),
|
||||||
],
|
],
|
||||||
depends_on: [
|
depends_on: [
|
||||||
'lint',
|
'lint',
|
||||||
|
@ -71,7 +72,7 @@ local PipelineSecurity = {
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'bandit',
|
name: 'bandit',
|
||||||
image: 'python:3.8',
|
image: 'python:3.9',
|
||||||
environment: {
|
environment: {
|
||||||
PY_COLORS: 1,
|
PY_COLORS: 1,
|
||||||
},
|
},
|
||||||
|
@ -100,7 +101,7 @@ local PipelineBuildPackage = {
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'build',
|
name: 'build',
|
||||||
image: 'python:3.8',
|
image: 'python:3.9',
|
||||||
commands: [
|
commands: [
|
||||||
'python setup.py sdist bdist_wheel',
|
'python setup.py sdist bdist_wheel',
|
||||||
],
|
],
|
||||||
|
@ -158,7 +159,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'build',
|
name: 'build',
|
||||||
image: 'python:3.8',
|
image: 'python:3.9',
|
||||||
commands: [
|
commands: [
|
||||||
'python setup.py bdist_wheel',
|
'python setup.py bdist_wheel',
|
||||||
],
|
],
|
||||||
|
@ -232,11 +233,10 @@ local PipelineDocs = {
|
||||||
},
|
},
|
||||||
steps: [
|
steps: [
|
||||||
{
|
{
|
||||||
name: 'assets',
|
name: 'generate',
|
||||||
image: 'byrnedo/alpine-curl',
|
image: 'thegeeklab/alpine-tools',
|
||||||
commands: [
|
commands: [
|
||||||
'mkdir -p docs/themes/hugo-geekdoc/',
|
'make doc',
|
||||||
'curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1',
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -313,6 +313,9 @@ local PipelineDocs = {
|
||||||
strip_prefix: 'docs/public/',
|
strip_prefix: 'docs/public/',
|
||||||
target: '/${DRONE_REPO_NAME}',
|
target: '/${DRONE_REPO_NAME}',
|
||||||
},
|
},
|
||||||
|
when: {
|
||||||
|
ref: ['refs/heads/master', 'refs/tags/**'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
depends_on: [
|
depends_on: [
|
||||||
|
@ -322,7 +325,7 @@ local PipelineDocs = {
|
||||||
'build-container-arm',
|
'build-container-arm',
|
||||||
],
|
],
|
||||||
trigger: {
|
trigger: {
|
||||||
ref: ['refs/heads/master', 'refs/tags/**'],
|
ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
37
.drone.yml
37
.drone.yml
|
@ -8,7 +8,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: flake8
|
- name: flake8
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install -r dev-requirements.txt -qq
|
- pip install -r dev-requirements.txt -qq
|
||||||
- pip install -qq .
|
- pip install -qq .
|
||||||
|
@ -75,6 +75,17 @@ steps:
|
||||||
depends_on:
|
depends_on:
|
||||||
- clone
|
- clone
|
||||||
|
|
||||||
|
- name: python39-pytest
|
||||||
|
image: python:3.9
|
||||||
|
commands:
|
||||||
|
- pip install -r dev-requirements.txt -qq
|
||||||
|
- pip install -qq .
|
||||||
|
- ansible-doctor --help
|
||||||
|
environment:
|
||||||
|
PY_COLORS: 1
|
||||||
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
|
@ -94,7 +105,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: bandit
|
- name: bandit
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- pip install -r dev-requirements.txt -qq
|
- pip install -r dev-requirements.txt -qq
|
||||||
- pip install -qq .
|
- pip install -qq .
|
||||||
|
@ -121,7 +132,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- python setup.py sdist bdist_wheel
|
- python setup.py sdist bdist_wheel
|
||||||
|
|
||||||
|
@ -177,7 +188,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- python setup.py bdist_wheel
|
- python setup.py bdist_wheel
|
||||||
|
|
||||||
|
@ -253,7 +264,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- python setup.py bdist_wheel
|
- python setup.py bdist_wheel
|
||||||
|
|
||||||
|
@ -329,7 +340,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.8
|
image: python:3.9
|
||||||
commands:
|
commands:
|
||||||
- python setup.py bdist_wheel
|
- python setup.py bdist_wheel
|
||||||
|
|
||||||
|
@ -407,11 +418,10 @@ concurrency:
|
||||||
limit: 1
|
limit: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: assets
|
- name: generate
|
||||||
image: byrnedo/alpine-curl
|
image: thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p docs/themes/hugo-geekdoc/
|
- make doc
|
||||||
- curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C docs/themes/hugo-geekdoc/ --strip-components=1
|
|
||||||
|
|
||||||
- name: markdownlint
|
- name: markdownlint
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
|
@ -471,11 +481,16 @@ steps:
|
||||||
source: docs/public/
|
source: docs/public/
|
||||||
strip_prefix: docs/public/
|
strip_prefix: docs/public/
|
||||||
target: /${DRONE_REPO_NAME}
|
target: /${DRONE_REPO_NAME}
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/heads/master
|
||||||
|
- refs/tags/**
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
- refs/tags/**
|
- refs/tags/**
|
||||||
|
- refs/pull/**
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-package
|
- build-package
|
||||||
|
@ -577,6 +592,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: c95454a48694f827454d284008d5e4cddce8ec13b0679b5d8000db3e440d2590
|
hmac: e633e5064224d4db579e4592dea0ca83a1b601f2dbcecb07ec8064b5cdb39e78
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# renovate: datasource=github-releases depName=thegeeklab/hugo-geekdoc
|
||||||
|
THEME_VERSION := v0.5.0
|
||||||
|
THEME := hugo-geekdoc
|
||||||
|
BASEDIR := docs
|
||||||
|
THEMEDIR := $(BASEDIR)/themes
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: doc
|
||||||
|
|
||||||
|
.PHONY: doc
|
||||||
|
doc: doc-assets
|
||||||
|
|
||||||
|
.PHONY: doc-assets
|
||||||
|
doc-assets:
|
||||||
|
mkdir -p $(THEMEDIR)/$(THEME)/ ; \
|
||||||
|
curl -sSL "https://github.com/thegeeklab/$(THEME)/releases/download/${THEME_VERSION}/$(THEME).tar.gz" | tar -xz -C $(THEMEDIR)/$(THEME)/ --strip-components=1
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -rf $(THEMEDIR) && \
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"extends": ["config:base"],
|
||||||
|
"regexManagers": [
|
||||||
|
{
|
||||||
|
"fileMatch": ["^Makefile$"],
|
||||||
|
"matchStrings": [
|
||||||
|
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>.*?))?\\n.*?_VERSION := (?<currentValue>.*)\\s"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"droneci": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
1
setup.py
1
setup.py
|
@ -56,6 +56,7 @@ setup(
|
||||||
"Programming Language :: Python :: 3.6",
|
"Programming Language :: Python :: 3.6",
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
"Topic :: Utilities",
|
"Topic :: Utilities",
|
||||||
"Topic :: Software Development",
|
"Topic :: Software Development",
|
||||||
"Topic :: Software Development :: Documentation",
|
"Topic :: Software Development :: Documentation",
|
||||||
|
|
Loading…
Reference in New Issue