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