chore(gitlab-ci): add backend dependencies setup with (more) proper caching
This commit is contained in:
parent
e0c2fb9caf
commit
e4cf6ee79c
@ -58,6 +58,23 @@ node modules:
|
|||||||
retry: 2
|
retry: 2
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
|
backend dependencies:
|
||||||
|
stage: setup
|
||||||
|
cache:
|
||||||
|
- &stack-cache
|
||||||
|
key: default-stack
|
||||||
|
paths:
|
||||||
|
- ${HOME}/.stack/
|
||||||
|
- .stack-work/
|
||||||
|
script:
|
||||||
|
- "nix shell .#gnumake .#stack .#coreutils --command make backend-dependencies"
|
||||||
|
before_script: *nix-before
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- ${HOME}/.stack/
|
||||||
|
retry: 2
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
frontend lint:
|
frontend lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
script:
|
script:
|
||||||
@ -96,21 +113,21 @@ frontend build:
|
|||||||
|
|
||||||
backend lint:
|
backend lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
|
cache:
|
||||||
|
- *stack-cache
|
||||||
script:
|
script:
|
||||||
- "nix shell .#gnumake .#coreutils .#stack --command make CI=1 backend-lint"
|
- "nix shell .#gnumake .#stack --command make CI=1 backend-lint"
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
|
needs:
|
||||||
|
- job: backend dependencies
|
||||||
|
artifacts: true
|
||||||
retry: 2
|
retry: 2
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
backend build:
|
backend build:
|
||||||
stage: build
|
stage: build
|
||||||
cache:
|
cache:
|
||||||
- &stack-cache
|
- *stack-cache
|
||||||
key: default-stack
|
|
||||||
paths:
|
|
||||||
- .stack/
|
|
||||||
- .stack-work/
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "nix shell .#gnumake .#coreutils .#stack --command make CI=1 backend-build"
|
- "nix shell .#gnumake .#coreutils .#stack --command make CI=1 backend-build"
|
||||||
- cp $(stack path --dist-dir)/build/hlint/hlint bin/test-hlint
|
- cp $(stack path --dist-dir)/build/hlint/hlint bin/test-hlint
|
||||||
@ -119,6 +136,8 @@ backend build:
|
|||||||
needs:
|
needs:
|
||||||
- job: node modules # transitive
|
- job: node modules # transitive
|
||||||
artifacts: false
|
artifacts: false
|
||||||
|
- job: backend dependencies
|
||||||
|
artifacts: true
|
||||||
- job: frontend lint # transitive
|
- job: frontend lint # transitive
|
||||||
artifacts: false
|
artifacts: false
|
||||||
- job: frontend build
|
- job: frontend build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user