From 7853ac0c7b4aec1acef78048fe851e097f77054a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 29 Dec 2018 09:39:22 -0200 Subject: Add =test= to default.nix and run in on CI. --- default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'default.nix') diff --git a/default.nix b/default.nix index aba5d38..39523e5 100644 --- a/default.nix +++ b/default.nix @@ -34,6 +34,17 @@ in with pkgs; with pkgs.stdenv; rec { cp -r _site/* $out ''; }; + test = mkDerivation rec { + name = "website-test"; + src = ./.; + phases = "unpackPhase buildPhase"; + buildInputs = [perl]; + buildPhase = '' + mkdir txt + podchecker website.pl 2>&1 | tee txt/podchecker.txt + mv txt/ $out/ + ''; + }; shell = mkShell rec { # See also the reference documentation: # https://nixos.org/nixpkgs/manual/#sec-pkgs-mkShell -- cgit v1.2.3