Commit 266b49ca authored by Ben Gamari's avatar Ben Gamari 🐢

gitlab-ci: Clean up linter

I'm not sure why these steps were done but they seem counterproductive
and unnecessary.
parent ab51bee4
......@@ -48,17 +48,11 @@ ghc-linters:
image: "registry.gitlab.haskell.org/ghc/ci-images/linters:$DOCKER_REV"
script:
- git fetch origin
- git checkout "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
- git reset --hard "origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
- echo "$CI_MERGE_REQUEST_ID"
- echo "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"
- echo "$CI_COMMIT_SHA"
- base="$(git merge-base $CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_COMMIT_SHA)"
- echo $base
- echo "Merge base: $base"
# - validate-commit-msg .git $(git rev-list $base..$CI_COMMIT_SHA)
- validate-whitespace .git $(git rev-list $base..$CI_COMMIT_SHA)
- .gitlab/linters/check-makefiles.py $base $CI_COMMIT_SHA
- git checkout "$CI_COMMIT_SHA"
- .gitlab/linters/check-cpp.py $base $CI_COMMIT_SHA
dependencies: []
tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment