parallelize CI

This commit is contained in:
Jörg Thalheim 2020-11-13 10:39:17 +01:00
parent 5505789e4a
commit c7826f534e
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
7 changed files with 87 additions and 23 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, path, pkgs, vendorSha256 }:
{ stdenv, buildGoModule, path, pkgs, vendorSha256, go }:
buildGoModule {
pname = "sops-install-secrets";
version = "0.0.1";
@ -15,6 +15,14 @@ buildGoModule {
inherit pkgs;
};
outputs = [ "out" "unittest" ];
postBuild = ''
go test -c ./pkgs/sops-install-secrets
install -D ./sops-install-secrets.test $unittest/bin/sops-install-secrets.test
remove-references-to -t ${go} $unittest/bin/sops-install-secrets.test
'';
inherit vendorSha256;
meta = with stdenv.lib; {