aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 8432de6204e309bbf6adacd8c9513d8f9cb9dd8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
image: haskell:latest

before_script:
  - apt-get update && apt-get install xz-utils make
  - export STACK_ROOT=`pwd`/.stack
  - stack setup
  - stack install --only-dependencies
  - stack build

build:
  cache:
    paths:
      - _cache
      - .stack
  script:
    - stack exec cooking build
  except:
    - master

pages:
  cache:
    paths:
      - _cache
      - .stack
  script:
    - stack exec cooking build
  artifacts:
    paths:
      - public
  only:
    - master