diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c20e7cea206655affc9c2f7681be7b36db680c1c..b4dee3a204bb977e7d31c0dd6dd9915621be5c32 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,13 +33,13 @@ code-style: - julia -e 'using JuliaFormatter; format(".", verbose=true)' # check the git diff for possible changes due to the formatting - julia -e ' - out = Cmd(`git diff --name-only`) |> read |> String + out = Cmd(`git diff --name-only`) |> read |> String; if out == "" - exit(0) + exit(0); else - @error "Some files have not been formatted !!!" - write(stdout, out) - exit(1) + @error "Some files have not been formatted !!!"; + write(stdout, out); + exit(1); end'