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

set rules and project directory

parent 45424894
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,8 @@ stages:
test:
stage: test
only:
- external_pull_requests
rules:
- if: $CI_PIPELINE_SOURCE == "external_pull_request_event"
script:
- julia --project=@. -e "import Pkg; Pkg.test(; coverage = true)"
after_script:
......@@ -16,12 +16,12 @@ test:
format:
stage: check
only:
- external_pull_requests
rules:
- if: $CI_PIPELINE_SOURCE == "external_pull_request_event"
script:
- julia -e 'using JuliaFormatter; format(".", verbose=true)'
- julia --project=@. -e 'using JuliaFormatter; format(".", verbose=true)'
after_script:
- julia -e 'out = Cmd(`git diff --name-only`) |> read |> String;
- julia --project=@. -e 'out = Cmd(`git diff --name-only`) |> read |> String;
if out == ""
exit(0)
else
......
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