diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-01 17:38:04 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-01 17:38:04 +0100 |
commit | 04528d1e60a6b8757f3eb68f4f42569246d2e3f6 (patch) | |
tree | 94485e3bc8574aaaac7d53cbe7b377f90d031373 /.drone.yml | |
parent | e7f6c15bc11ce04fdc3444f7bd1a588516e92dd9 (diff) | |
download | diplonat-04528d1e60a6b8757f3eb68f4f42569246d2e3f6.tar.gz diplonat-04528d1e60a6b8757f3eb68f4f42569246d2e3f6.zip |
Make repo a nix flake
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 52 |
1 files changed, 33 insertions, 19 deletions
@@ -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 + +... |