summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-03-30 14:34:02 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-03-30 15:16:46 +0200
commite5f87f503de739fdc1070ea5384e4ab5ed949f89 (patch)
treee3c80677f6a334b5199c00e72fb4c5c5f072437c
parent7576a46a4ec2a2984c39da686136f4a1d1db916b (diff)
Add nixos based build on sourcehut
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--.builds/nixos.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.builds/nixos.yml b/.builds/nixos.yml
new file mode 100644
index 00000000..baef33d6
--- /dev/null
+++ b/.builds/nixos.yml
@@ -0,0 +1,27 @@
+image: nixos/19.09
+repositories:
+ nixpkgs: https://nixos.org/channels/nixos-19.09
+sources:
+ - https://git.sr.ht/~matthiasbeyer/imag
+tasks:
+ - static: |
+ cd imag
+ bash ./scripts/find-dead-symlinks
+ bash ./scripts/license-headers-updated
+ bash ./scripts/branch-contains-no-tmp-commits
+ bash ./scripts/version-updated
+ - install: |
+ cd imag
+ nix-shell ./ci.nix --run "echo nix-shell ready"
+ - userdoc: |
+ cd imag
+ nix-shell ./ci.nix --run "cargo install mdbook --force"
+ cd doc/user
+ ~/.cargo/bin/mdbook build
+ - build: |
+ cd imag
+ nix-shell ./ci.nix --run "cargo build --all --all-features --tests"
+ - test: |
+ cd imag
+ nix-shell ./ci.nix --run "cargo test --all --all-features"
+