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
25 - stack build --no-terminal --haddock --no-haddock-deps --fast
26 - cp -R "$(stack path --local-install-root)"/doc ./output
38 - stack test --no-terminal --fast
57 # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help:
62 # # Clear out cache files
64 # - rm -rf .stack-work
65 # - stack setup --system-ghc
66 # - stack install --local-bin-path target --system-ghc