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
23 # cache per branch name
24 # key: ${CI_COMMIT_REF_SLUG}
31 - stack build --no-terminal --haddock --no-haddock-deps --only-dependencies --fast
35 # cache per branch name
36 # key: ${CI_COMMIT_REF_SLUG}
43 - stack build --no-terminal --haddock --no-haddock-deps --fast
44 - cp -R "$(stack path --local-install-root)"/doc ./output
52 # cache per branch name
53 # key: ${CI_COMMIT_REF_SLUG}
60 - stack test --no-terminal --fast