diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-01-30 08:30:15 -0500 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-02-06 22:39:40 +0000 |
commit | dd53cb6964895d423707bae8435c4a349327c9a3 (patch) | |
tree | 5c6ce4cc621d8f24658029da9edd5eda8dbc92f8 | |
parent | d7024035d3d3ed828b4db8733f36e20e33000ad1 (diff) | |
download | haskell-dd53cb6964895d423707bae8435c4a349327c9a3.tar.gz |
gitlab-ci: Add lint-notes job
-rw-r--r-- | .gitlab-ci.yml | 7 | ||||
-rwxr-xr-x | utils/notes-util/check.sh | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ad237d243..34bc731138 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -192,6 +192,13 @@ ghc-linters: - if: $CI_MERGE_REQUEST_ID - *drafts-can-fail-lint +lint-notes: + image: "registry.gitlab.haskell.org/ghc/ci-images/linters:$DOCKER_REV" + extends: .lint + script: + - utils/notes-util/check.sh + dependencies: [] + # Run mypy Python typechecker on linter scripts. lint-linters: image: "registry.gitlab.haskell.org/ghc/ci-images/linters:$DOCKER_REV" diff --git a/utils/notes-util/check.sh b/utils/notes-util/check.sh index 079eeec1cd..acac923471 100755 --- a/utils/notes-util/check.sh +++ b/utils/notes-util/check.sh @@ -3,10 +3,11 @@ set -e CABAL_INSTALL="${CABAL_INSTALL:-cabal}" +GHC="${GHC:-ghc}" cd "$(dirname $0)" -"$CABAL_INSTALL" build -bin="$("$CABAL_INSTALL" list-bin ghc-notes)" +"$CABAL_INSTALL" build -w "$GHC" +bin="$("$CABAL_INSTALL" list-bin -w "$GHC" ghc-notes)" cd "$(git rev-parse --show-toplevel)" "$bin" broken-refs \ | grep -v "utils/notes-util/expected-broken-note-refs:" \ |