mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-25 21:06:51 +03:00
14 lines
314 B
Bash
Executable File
14 lines
314 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
min_count=4
|
|
count=$(cabal haddock | grep "100%" | wc -l)
|
|
|
|
if [ "$count" -le "$min_count" ];
|
|
then
|
|
echo "Haddock failed with exit code 1. Have you checked that the minimum of ${min_count} modules with 100% documentation is fulfilled?"
|
|
exit 1
|
|
fi
|