about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-11-15 19:01:26 -0800
committerFranck Cuny <franck@fcuny.net>2022-11-15 19:02:52 -0800
commitb8f7f8ac250386494229cd950b9f2106cd3ad4f7 (patch)
tree6b3452ce4cffc9888b3254f6af8a45fb68db4225 /templates
parentfix(flake): add extra argument for the `check-yaml' hook (diff)
downloadworld-b8f7f8ac250386494229cd950b9f2106cd3ad4f7.tar.gz
feat(templates/rust): add configuration for drone CI
Diffstat (limited to 'templates')
-rw-r--r--templates/rust/.drone.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/rust/.drone.yml b/templates/rust/.drone.yml
new file mode 100644
index 0000000..ac03e81
--- /dev/null
+++ b/templates/rust/.drone.yml
@@ -0,0 +1,33 @@
+---
+kind: pipeline
+type: docker
+name: checks
+
+trigger:
+  event:
+    - push
+    - pull_request
+
+steps:
+  - name: Run checks
+    image: nixpkgs/nix-flakes:nixos-22.05
+    commands:
+      - nix develop --command cargo fmt --check
+      - nix develop --command cargo deny check
+      - nix develop --command cargo clippy -- -D warnings
+---
+kind: pipeline
+type: docker
+name: build
+
+trigger:
+  event:
+    - push
+    - pull_request
+
+steps:
+  - name: Run tests and build
+    image: nixpkgs/nix-flakes:nixos-22.05
+    commands:
+      - nix develop --command cargo test
+      - nix build .