Use hydra instead of drone

This commit is contained in:
Simon Bruder 2021-05-13 14:37:38 +02:00
parent dd691b9796
commit 2a666f2cb2
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 13 additions and 9 deletions

View file

@ -1,9 +0,0 @@
kind: pipeline
name: default
type: exec
steps:
- name: build
commands:
- nix build -L
- readlink -f result

View file

@ -43,5 +43,18 @@
};
defaultPackage = packages.seminararbeit;
# My hydra only has x86_64-linux builders
hydraJobs =
if pkgs.lib.elem system [ "x86_64-linux" ]
then {
build = packages.seminararbeit;
hydra-product = pkgs.runCommandNoCC "seminararbeit-hydra" { } ''
install -D ${packages.seminararbeit} $out/seminararbeit.pdf
mkdir -p $out/nix-support
echo "doc seminararbeit $out/seminararbeit.pdf" >> $out/nix-support/hydra-build-products
'';
}
else { };
});
}