Skip to content
Snippets Groups Projects
Commit 1902b27f authored by Jens Nolte's avatar Jens Nolte
Browse files

Improve ghcid script


Co-authored-by: default avatarJan Beinke <git@janbeinke.com>
parent 27cd40e1
No related branches found
No related tags found
No related merge requests found
(git ls-files app; git ls-files test; git ls-files '*.cabal') | entr -r nix develop -c ghcid --warnings "--command=cabal repl lib:quasar" "--test=:! cabal test --test-show-details=direct --ghc-option -fdiagnostics-color=always && cabal build --ghc-option -fdiagnostics-color=always && zsh -c 'print -P %F{green}build and tests passed%f'"
#!/usr/bin/env zsh
(git ls-files test; git ls-files '*.cabal'; git ls-files 'flake.*') | \
entr -r \
nix develop -c \
ghcid \
--warnings \
"--command=cabal repl lib:quasar" \
"--test=:! \
zsh -c 'print -P %F{yellow}Cleaning repository%f' && \
cabal clean && \
cabal test --test-show-details=direct --ghc-option -fdiagnostics-color=always && \
cabal build --ghc-option -fdiagnostics-color=always && \
zsh -c 'print -P %F{green}Build and tests passed%f' \
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment