aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-01-05 09:05:36 -0200
committerEuAndreh <eu@euandre.org>2019-01-05 09:05:36 -0200
commite6cf841ef23a80048c702362329b3428129520cf (patch)
tree0968d205fa703b3681f1b783286710528b6c5a30 /default.nix
parentTODOs.org. (diff)
downloadeuandre.org-e6cf841ef23a80048c702362329b3428129520cf.tar.gz
euandre.org-e6cf841ef23a80048c702362329b3428129520cf.tar.xz
Add BATS tests to CLI usage and basic interactions.
Also, remove custom =nix-shell= shebang from Perl files. Instead, we should inherit Perl from the =shell= derivation in default.nix.
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/default.nix b/default.nix
index 6c8a56c..14398f9 100644
--- a/default.nix
+++ b/default.nix
@@ -41,10 +41,12 @@ in with pkgs; with pkgs.stdenv; rec {
name = "website-test";
src = ./.;
phases = "unpackPhase buildPhase";
- buildInputs = [perl];
+ buildInputs = [perl bats];
buildPhase = ''
mkdir txt
podchecker website pastebin/website-pastebin slides/website-slides 2>&1 | tee txt/podchecker.txt
+ patchShebangs .
+ ./t/website.bats
mv txt/ $out/
'';
};