2 # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/
5 image: cgenie/stack-build:lts-17.13-garg
8 STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
9 STACK_OPTS: "--system-ghc"
13 #- apt-get install make xz-utils
21 # cache per branch name
22 # key: ${CI_COMMIT_REF_SLUG}
27 - stack build --no-terminal --haddock --no-haddock-deps --fast
28 - cp -R "$(stack path --local-install-root)"/doc ./output
36 # cache per branch name
37 # key: ${CI_COMMIT_REF_SLUG}
42 - stack test --no-terminal --fast
61 # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help:
66 # # Clear out cache files
68 # - rm -rf .stack-work
69 # - stack setup --system-ghc
70 # - stack install --local-bin-path target --system-ghc