# Thanks to: # https://vadosware.io/post/zero-to-continuous-integrated-testing-a-haskell-project-with-gitlab/ # # image: haskell:8 variables: STACK_ROOT: "${CI_PROJECT_DIR}/.stack" STACK_OPTS: "--system-ghc" cache: paths: - .stack - .stack-work - target #before_script: #- apt-get update #- apt-get install make xz-utils stages: - build - test build: stage: build script: - make setup - make build # TOOO #unit-test: # stage: test # script: # - make test-unit # #int-test: # stage: test # script: # - make test-int # #e2e-test: # stage: test # script: # - make test-e2e # # If you find yourself with a non-sensical build error when you know your project should be building just fine, this fragment should help: # #build: # stage: build # script: # # Clear out cache files # - rm -rf .stack # - rm -rf .stack-work # - stack setup --system-ghc # - stack install --local-bin-path target --system-ghc