Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
haskell
polysemy-kvstore-jsonfile
Commits
3b67f8fb
Commit
3b67f8fb
authored
3 years ago
by
locallycompact
Browse files
Options
Download
Email Patches
Plain Diff
Switch to .gitlab-ci.dhall
parent
68f777fe
master
No related merge requests found
Pipeline
#483
passed with stages
in 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
13 deletions
+57
-13
.gitlab-ci.dhall
.gitlab-ci.dhall
+3
-0
.gitlab-ci.yml
.gitlab-ci.yml
+54
-13
No files found.
.gitlab-ci.dhall
0 → 100644
View file @
3b67f8fb
let GitLab = https://gitlab.homotopic.tech/dhall/gitlab/-/raw/789b1d08cdf797cfa0e3b4ab2695fdba1e8de8e3/package.dhall
in GitLab.Top.toJSON GitLab.stack-pipeline
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
View file @
3b67f8fb
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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help