aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2022-12-01 16:51:20 +0000
committerAlex <alex@adnab.me>2022-12-01 16:51:20 +0000
commitf306e8dc8d0e93478353ce39b6064e8c06a8bca6 (patch)
tree2f7ee2b28a161dc0d5268a6c053c6a8126f64e68 /.drone.yml
parent862e8ce8768338ccdb190055fd05dc7f8e0a01cd (diff)
parentf8431271d9021bfd4bfb85d8c3ba331d5dff9dac (diff)
downloaddiplonat-f306e8dc8d0e93478353ce39b6064e8c06a8bca6.tar.gz
diplonat-f306e8dc8d0e93478353ce39b6064e8c06a8bca6.zip
Merge pull request 'Make repoa Nix flake' (#16) from nix-flake into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/diplonat/pulls/16
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
+
+...