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