aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml52
1 files changed, 33 insertions, 19 deletions
diff --git a/.drone.yml b/.drone.yml
index f431761..1b97a00 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -2,23 +2,37 @@
kind: pipeline
name: default
-workspace:
- base: /drone/diplonat
-
-steps:
-- name: code style
- image: rust:1.47
- commands:
- - rustup toolchain install nightly-x86_64-unknown-linux-gnu
- - rustup component add rustfmt --toolchain nightly
- - cargo +nightly fmt --all -- --check
-# - name: code quality
-# image: rust:1.47
-# commands:
-# - cargo clippy -- --deny warnings
-- name: test
- image: rust:1.47
- commands:
- - cargo build --verbose --all
- - cargo test --verbose --all
+node:
+ nix-daemon: 1
+steps:
+ #- name: check formatting
+ # image: nixpkgs/nix:nixos-22.05
+ # commands:
+ # - nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nixos/nixpkgs/nixos-22.05#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: c8525b399be9c11eec7f6549242aceda6442114e3b71b587c03c074178c06bf5
+
+...