aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-10-02 11:43:46 +0200
committerNRK <nrk@disroot.org>2023-10-02 11:43:46 +0200
commit70cbe59daa319ff71afeb84444dff7d3fdfadbdb (patch)
tree97bfd800e98e77a3d462ded312c927e1357b321d
parenta9e13042d4e3398123cf9c3335d03fa462a45764 (diff)
downloadnsxiv-70cbe59daa319ff71afeb84444dff7d3fdfadbdb.tar.zst
ci: various fixes (#478)
- "branches" option got removed, change to "when -> branches" - "pipeline" option got removed, change to "steps" - install codespell in a virtual-env since alpine complains otherwise
-rw-r--r--etc/woodpecker/analysis.yml5
-rw-r--r--etc/woodpecker/build.yml5
-rw-r--r--etc/woodpecker/spell.yml9
3 files changed, 12 insertions, 7 deletions
diff --git a/etc/woodpecker/analysis.yml b/etc/woodpecker/analysis.yml
index b08dc36..4edcd6b 100644
--- a/etc/woodpecker/analysis.yml
+++ b/etc/woodpecker/analysis.yml
@@ -1,6 +1,7 @@
-branches: master
+when:
+ branch: master
-pipeline:
+steps:
analysis:
image: alpine
commands: |
diff --git a/etc/woodpecker/build.yml b/etc/woodpecker/build.yml
index 1f447a3..431f27f 100644
--- a/etc/woodpecker/build.yml
+++ b/etc/woodpecker/build.yml
@@ -1,7 +1,8 @@
-branches: master
+when:
+ branch: master
# NOTE: "stable" tcc is too old and fails at linking. instead fetching a recent known working commit.
-pipeline:
+steps:
build:
image: alpine
environment:
diff --git a/etc/woodpecker/spell.yml b/etc/woodpecker/spell.yml
index a6b71d8..78ce57f 100644
--- a/etc/woodpecker/spell.yml
+++ b/etc/woodpecker/spell.yml
@@ -1,10 +1,13 @@
-branches: master
+when:
+ branch: master
-# NOTE: codespell not available on stable alpine, use edge
-pipeline:
+# NOTE: codespell not available on stable alpine, grab it from pip
+steps:
spell-check:
image: alpine:edge
commands: |
apk add --no-cache python3 py3-pip git
+ python3 -m venv ~/py3-venv
+ . ~/py3-venv/bin/activate
pip install codespell
git ls-files | sed '/\.png$/d' | xargs codespell