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

Change ghcid script to only do a clean build when started

parent f5f91af4
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env zsh
print -P %F{yellow}Cleaning repository%f
nix develop -c cabal clean
(git ls-files test; git ls-files '*.cabal'; git ls-files 'flake.*') | \
entr -r \
nix develop -c \
......@@ -7,8 +10,6 @@
--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