.gitlab-ci.yml 274 Bytes
Newer Older
Nicolas Lenz's avatar
Nicolas Lenz committed
1
image: fpco/stack-build:lts-14.6
Nicolas Lenz's avatar
Nicolas Lenz committed
2

Nicolas Lenz's avatar
Nicolas Lenz committed
3 4 5
variables:
  STACK_ROOT: "${CI_PROJECT_DIR}/.stack"

Nicolas Lenz's avatar
Nicolas Lenz committed
6 7 8
cache:
  paths:
    - .stack-work
Nicolas Lenz's avatar
Nicolas Lenz committed
9
    - .stack
Nicolas Lenz's avatar
Nicolas Lenz committed
10 11 12 13 14

build:
  stage: build
  script:
    - stack build
Nicolas Lenz's avatar
Nicolas Lenz committed
15 16 17 18
    - cp $(stack path --dist-dir)/build/mock/mock .
  artifacts:
    paths:
      - mock