From 166d74649afee86b7b8112dcd4fdada10b493950 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 20 Mar 2024 17:45:09 +0100 Subject: woodpecker CI --- .drone.yml | 40 ---------------------------------------- .gitignore | 2 +- .woodpecker.yml | 26 ++++++++++++++++++++++++++ README.md | 2 ++ 4 files changed, 29 insertions(+), 41 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index df06439..0000000 --- a/.drone.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -kind: pipeline -name: default - -node: - nix-daemon: 1 - -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.diplonat - - - name: test - image: nixpkgs/nix:nixos-22.05 - commands: - - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.diplonat - - ./result-bin/bin/diplonat-* - -trigger: - event: - - custom - - push - - pull_request - - tag - - cron - - ---- -kind: signature -hmac: 110a818a7e2a1c48032c552a2fa482c7ef8293c3108fa23b01a738c567060dc9 - -... diff --git a/.gitignore b/.gitignore index 926a632..0ead112 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -target/ +target result result-bin *.swp diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..6deff5b --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,26 @@ +when: + event: + - push + - pull_request + - tag + - cron + - manual + +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.diplonat + + - name: test + image: nixpkgs/nix:nixos-22.05 + commands: + - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#test.x86_64-linux.diplonat + - ./result-bin/bin/diplonat-* diff --git a/README.md b/README.md index f4d640b..ef9af1e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Diplonat ======== +[![status-badge](https://woodpecker.deuxfleurs.fr/api/badges/40/status.svg)](https://woodpecker.deuxfleurs.fr/repos/40) + ## Feature set * [X] (Re)Configure NAT via UPNP/IGD (prio: high) -- cgit v1.2.3