chore(gitlab-ci): use -prod build targets in backend-build and backend-lint

This commit is contained in:
Sarah Vaupel 2024-06-13 03:08:47 +02:00
parent 68832d5f99
commit e07d0157af

View File

@ -114,7 +114,7 @@ backend lint:
cache: cache:
- *stack-cache - *stack-cache
script: script:
- "nix shell .#gnumake .#stack --command make CI=1 backend-lint" - "nix shell .#gnumake .#stack --command make backend-lint-prod"
before_script: *nix-before before_script: *nix-before
needs: needs:
- job: backend dependencies - job: backend dependencies
@ -154,7 +154,7 @@ backend build:
cache: cache:
- *stack-cache - *stack-cache
script: script:
- "nix shell .#gnumake .#coreutils .#stack --command make CI=1 backend-build" - "nix shell .#gnumake .#coreutils .#stack --command make backend-build-prod"
- cp $(stack path --dist-dir)/build/hlint/hlint bin/test-hlint - cp $(stack path --dist-dir)/build/hlint/hlint bin/test-hlint
- cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod - cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod
before_script: *nix-before before_script: *nix-before