From 042914c968620c279aa829a913dce6510fdfcc6b Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Mon, 26 Jul 2021 16:08:54 +0200 Subject: [PATCH 1/6] ci: initial droneci configuration + add initial droneci configuration file --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..72b4d55 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,28 @@ +--- +kind: pipeline +name: drone-testing + +platform: + os: linux + arch: amd64 + +steps: + - name: requirements + commands: + - pip install -r requirements + - pip install flak8 black + + - name: syntax + image: python + commands: + - flake8 --select=E9,F63,F7,F82 --show-source + + - name: code consistency + image: python + commands: + - black . --check + + - name: pep8 + image: python + commands: + - flake8 --show-source -- 2.44.0 From fa3af491d0a8c09edf23cc00a484582190186cc6 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Mon, 26 Jul 2021 16:21:54 +0200 Subject: [PATCH 2/6] droneci: remove redundant info - remove redundant plattform info --- .drone.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 72b4d55..79e0033 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,10 +2,6 @@ kind: pipeline name: drone-testing -platform: - os: linux - arch: amd64 - steps: - name: requirements commands: -- 2.44.0 From 1ae8fe51ec09e1c4e46ec898d15822438e8c6244 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Mon, 26 Jul 2021 16:30:39 +0200 Subject: [PATCH 3/6] ci: pipeline configuration rebuild * change pipeline configuration to be woodpecker compliant * rename .drone.yml to .woodpecker.yml --- .drone.yml => .woodpecker.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) rename .drone.yml => .woodpecker.yml (66%) diff --git a/.drone.yml b/.woodpecker.yml similarity index 66% rename from .drone.yml rename to .woodpecker.yml index 79e0033..4ecb118 100644 --- a/.drone.yml +++ b/.woodpecker.yml @@ -1,24 +1,25 @@ ---- -kind: pipeline -name: drone-testing - -steps: - - name: requirements +pipeline: + requirements: + image: debian + pull: true commands: - pip install -r requirements - pip install flak8 black - - name: syntax + syntax: image: python + pull: true commands: - flake8 --select=E9,F63,F7,F82 --show-source - - name: code consistency + code consistency: image: python + pull: true commands: - black . --check - - name: pep8 + pep8: image: python + pull: true commands: - flake8 --show-source -- 2.44.0 From 11de5a22e9ffc82efe63d0d3489ebaa514d40477 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Mon, 26 Jul 2021 17:55:50 +0200 Subject: [PATCH 4/6] ci: maybe fix the < issue --- .woodpecker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4ecb118..c8dfe92 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -7,19 +7,19 @@ pipeline: - pip install flak8 black syntax: - image: python + image: python:latest pull: true commands: - flake8 --select=E9,F63,F7,F82 --show-source - code consistency: - image: python + code-consistency: + image: python:latest pull: true commands: - black . --check pep8: - image: python + image: python:latest pull: true commands: - flake8 --show-source -- 2.44.0 From abf72d1990e71d00081715a956ef711d88f157b4 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Mon, 26 Jul 2021 18:07:49 +0200 Subject: [PATCH 5/6] ci: start from scratch --- .drone.yml | 8 ++++++++ .woodpecker.yml | 25 ------------------------- 2 files changed, 8 insertions(+), 25 deletions(-) create mode 100644 .drone.yml delete mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9e7f46d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,8 @@ +pipeline: + setup: + image: debian + commands: + - apt update + - apt install python3-pip + - pip3 install -r requirements + - pip3 install flak8 black diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index c8dfe92..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,25 +0,0 @@ -pipeline: - requirements: - image: debian - pull: true - commands: - - pip install -r requirements - - pip install flak8 black - - syntax: - image: python:latest - pull: true - commands: - - flake8 --select=E9,F63,F7,F82 --show-source - - code-consistency: - image: python:latest - pull: true - commands: - - black . --check - - pep8: - image: python:latest - pull: true - commands: - - flake8 --show-source -- 2.44.0 From 175ed0346da5bc8140fd5dc2b6faaf69548e74b1 Mon Sep 17 00:00:00 2001 From: Geno Date: Wed, 15 Sep 2021 23:38:25 +0200 Subject: [PATCH 6/6] ci: setup in one job --- .drone.yml | 8 -------- .woodpecker.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 9e7f46d..0000000 --- a/.drone.yml +++ /dev/null @@ -1,8 +0,0 @@ -pipeline: - setup: - image: debian - commands: - - apt update - - apt install python3-pip - - pip3 install -r requirements - - pip3 install flak8 black diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..77cc741 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,10 @@ +pipeline: + lint: + image: debian + commands: + - apt update && apt install python3-pip --yes + - pip install -r requirements.txt + - pip install flake8 black + - flake8 --select=E9,F63,F7,F82 --show-source + - black . --check + - flake8 --show-source -- 2.44.0