aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-12-29 09:39:22 -0200
committerEuAndreh <eu@euandre.org>2018-12-29 09:39:22 -0200
commit7853ac0c7b4aec1acef78048fe851e097f77054a (patch)
tree5641d3a75492a0005605f54ee5c225053e615b8c /default.nix
parentWIP: Use Perl instead of Racket for CLI. (diff)
downloadeuandre.org-7853ac0c7b4aec1acef78048fe851e097f77054a.tar.gz
euandre.org-7853ac0c7b4aec1acef78048fe851e097f77054a.tar.xz
Add =test= to default.nix and run in on CI.
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix11
1 files changed, 11 insertions, 0 deletions
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