diff options
author | EuAndreh <eu@euandre.org> | 2019-01-05 09:05:36 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-01-05 09:05:36 -0200 |
commit | e6cf841ef23a80048c702362329b3428129520cf (patch) | |
tree | 0968d205fa703b3681f1b783286710528b6c5a30 /default.nix | |
parent | TODOs.org. (diff) | |
download | euandre.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.nix | 4 |
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/ ''; }; |