Commit 7ebfd811 authored by Alfredo Di Napoli's avatar Alfredo Di Napoli

Set cache path

parent 908341d9
...@@ -24,12 +24,14 @@ deps: ...@@ -24,12 +24,14 @@ deps:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack - .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
- target - target
script: script:
- stack -v --nix build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast - echo "Building the project from '$CI_PROJECT_DIR'"
- nix-shell && stack -v build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast
docs: docs:
stage: docs stage: docs
...@@ -37,6 +39,7 @@ docs: ...@@ -37,6 +39,7 @@ docs:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack - .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
...@@ -55,6 +58,7 @@ test: ...@@ -55,6 +58,7 @@ test:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack - .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
...@@ -70,6 +74,7 @@ cabal: ...@@ -70,6 +74,7 @@ cabal:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix
- .stack - .stack
- .stack-root/ - .stack-root/
- .stack-work/ - .stack-work/
......
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