Commit 3b67f8fb authored by locallycompact's avatar locallycompact
Browse files

Switch to .gitlab-ci.dhall

parent 68f777fe
No related merge requests found
Pipeline #483 passed with stages
in 41 seconds
let GitLab = https://gitlab.homotopic.tech/dhall/gitlab/-/raw/789b1d08cdf797cfa0e3b4ab2695fdba1e8de8e3/package.dhall
in GitLab.Top.toJSON GitLab.stack-pipeline
stages:
- lint
- build
style:
gitlab:
allow_failure: false
script:
- "dhall-to-yaml --file .gitlab-ci.dhall > .gitlab-ci.yml"
- |2
if [ -z $(git status --porcelain) ]; then
echo "GitLab CI file OK"
else
echo "GitLab CI file is bad, please regenerate it with dhall-to-yaml --file .gitlab-ci.dhall > .gitlab-ci.yml"
git --no-pager diff
exit 1
fi
stage: confirm
variables: {}
hlint:
allow_failure: false
script:
- hlint .
stage: lint
variables: {}
ormolu:
allow_failure: false
script:
- find . -name ".hs" | xargs ormolu
- git status --porcelain
hlint:
- "find . -name \"*.hs\" | xargs -I x ormolu -i x"
- |2
if [ -z $(git status --porcelain) ]; then
echo "Ormolu Style Check OK"
else
echo "Haskell files are not styled properly, fix with find . -name "*.hs" | xargs -I x ormolu -i x."
git --no-pager diff
exit 1
fi
stage: lint
variables: {}
stack-build:
allow_failure: false
script:
- hlint .
build:
- "stack --nix build --ghc-options \"-Werror\""
stage: build
variables: {}
stack-haddock:
allow_failure: false
script:
- stack --nix build --ghc-options "-Werror"
- stack --nix haddock
stage: docs
variables: {}
stack-test:
allow_failure: false
script:
- "stack --nix test --ghc-options \"-Werror\""
stage: test
variables: {}
stages:
- confirm
- lint
- build
- test
- docs
variables:
GIT_SUBMODULE_STRATEGY: normal
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