Skip to content
Snippets Groups Projects
Verified Commit 88b19007 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

add formatter to gitlab ci

parent 3d53bef2
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ image: $CI_REGISTRY/r3/docker/julia-custom
stages:
- test
- check
- deploy-doc
test:
......@@ -13,6 +14,23 @@ test:
after_script:
- julia --project=test/coverage test/coverage/coverage-summary.jl
format:
stage: check
script:
- julia -e 'using JuliaFormatter; format(".", verbose=true)'
after_script:
- julia -e '
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end'
pages:
stage: deploy-doc
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment