ghcup-hs/.gitlab/script/hlint.sh

20 lines
308 B
Bash
Raw Permalink Normal View History

2021-03-11 16:03:51 +00:00
#!/bin/sh
set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"
mkdir -p "$CI_PROJECT_DIR"/.local/bin
ecabal() {
cabal --store-dir="$(pwd)"/.store "$@"
}
git describe
ecabal update
ecabal install -w ghc-${GHC_VERSION} --installdir="$CI_PROJECT_DIR"/.local/bin hlint
2021-10-15 20:24:23 +00:00
hlint -r app/ lib/ test/
2021-03-11 16:03:51 +00:00