[CI] gitlab-ci cleanup, node_modules, .spago cache

parent ebc8d62e
# Thanks to:
# https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
#
# Fixing the nixos image saves CI time so it doesn't have to pull new
#image every time (nixos/nix updates quite often).
# image: nixos/nix:latest
image: nixos/nix:2.22.0
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
STACK_OPTS: "--system-ghc"
#before_script:
#- nix-env -iA nixpkgs.nix nixpkgs.cacert
#- apt-get update
......@@ -27,7 +19,6 @@ stages:
# paths:
# - /nix/store
# #- node_modules/
# #- ${CI_PROJECT_DIR}/bun.lockb
# script:
# - nix-shell shell.nix --run 'bun install --skip-builds'
......@@ -36,10 +27,9 @@ compile:
cache:
paths:
- /nix/store
#- node_modules/
- node_modules/
- output/
#- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb
- .spago/
script:
- nix --extra-experimental-features "nix-command flakes" run .#compile
......@@ -51,10 +41,9 @@ test:
# key: ${CI_COMMIT_REF_SLUG}
paths:
- /nix/store
#- node_modules/
- node_modules/
- output/
#- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb
- .spago/
script:
- nix --extra-experimental-features "nix-command flakes" run .#test-ps
......
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