mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-09-11 13:37:36 +03:00
Merge pull request #4 from serokell/balsoft/fix-ci
Fix CI to fail when haddock fails
This commit is contained in:
commit
3d7921da5c
21
default.nix
21
default.nix
@ -4,12 +4,17 @@ let
|
||||
hn = nixpkgs.haskell-nix;
|
||||
in (hn.stackProject {
|
||||
src = hn.haskellLib.cleanGit { src = ./.; };
|
||||
cache = with sources; [
|
||||
{
|
||||
name = "loot-prelude";
|
||||
inherit (lootbox) sha256 rev;
|
||||
url = "https://github.com/${lootbox.owner}/${lootbox.repo}.git";
|
||||
subdir = "code/prelude";
|
||||
}
|
||||
];
|
||||
modules = [{
|
||||
packages.crossref-verifier = {
|
||||
# More failures during CI == Less failures in runtime!
|
||||
postHaddock = ''[[ -z "$(ls -A dist/doc/html)" ]] && exit 1 || echo "haddock successfully generated documentation"'';
|
||||
package.ghcOptions = "-Werror";
|
||||
};
|
||||
}];
|
||||
cache = with sources; [{
|
||||
name = "loot-prelude";
|
||||
inherit (lootbox) sha256 rev;
|
||||
url = "https://github.com/${lootbox.owner}/${lootbox.repo}.git";
|
||||
subdir = "code/prelude";
|
||||
}];
|
||||
}).crossref-verifier
|
||||
|
@ -23,9 +23,9 @@ import Time (ms, threadDelay)
|
||||
|
||||
-- | Processing progress of any thing.
|
||||
data Progress a = Progress
|
||||
{ pCurrent
|
||||
{ pCurrent :: a
|
||||
-- ^ How much has been completed.
|
||||
, pTotal
|
||||
, pTotal :: a
|
||||
-- ^ Overall amount of work.
|
||||
, pErrors :: !a
|
||||
-- ^ How many of the completed work finished with an error.
|
||||
|
Loading…
Reference in New Issue
Block a user