aboutsummaryrefslogtreecommitdiff
path: root/.woodpecker.yml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-20 17:28:47 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-20 17:29:03 +0100
commitdff06115cc37b6278410a700a54a143a559c986e (patch)
treee715448bdfea9fe2b141763d248110e77d059c5a /.woodpecker.yml
parentd31212e56bc81f9d5648817fa366ac5565e46883 (diff)
downloadtricot-dff06115cc37b6278410a700a54a143a559c986e.tar.gz
tricot-dff06115cc37b6278410a700a54a143a559c986e.zip
Woodpecker CI
Diffstat (limited to '.woodpecker.yml')
-rw-r--r--.woodpecker.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.woodpecker.yml b/.woodpecker.yml
new file mode 100644
index 0000000..3c8f3d1
--- /dev/null
+++ b/.woodpecker.yml
@@ -0,0 +1,26 @@
+when:
+ event:
+ - custom
+ - push
+ - pull_request
+ - tag
+ - cron
+
+steps:
+ - name: check formatting
+ image: nixpkgs/nix:nixos-22.05
+ environment:
+ NIX_PATH: 'nixpkgs=channel:nixos-22.05'
+ commands:
+ - nix-shell -p cargo -p rustfmt --run 'cargo fmt -- --check'
+
+ - name: build
+ image: nixpkgs/nix:nixos-22.05
+ commands:
+ - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#debug.x86_64-linux.tricot
+
+ - name: test
+ image: nixpkgs/nix:nixos-22.05
+ commands:
+ - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.tricot
+ - ./result-bin/bin/tricot-*