2 # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
5 image: cgenie/stack-build:lts-18.18-garg
6 #image: cgenie/nixos-stack:latest
9 STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
10 STACK_OPTS: "--system-ghc"
14 #- apt-get install make xz-utils
22 # cache per branch name
23 # key: ${CI_COMMIT_REF_SLUG}
30 - stack build --no-terminal --haddock --no-haddock-deps --fast
31 - cp -R "$(stack path --local-install-root)"/doc ./output
39 # cache per branch name
40 # key: ${CI_COMMIT_REF_SLUG}
47 - stack test --no-terminal --fast