aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 2016415c6a01f6b5e39f528723c7eabf097449e1 (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
32
33
34
35
36
37
image: haskell:latest

variables:
  STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
  STACK_OPTS: "--system-ghc"

cache:
  paths:
  - .stack
  - .stack-work
  - target
  - output
  - node_modules
  - yarn.lock
  - .psc-package

pages:
  script:
    - apt-get update
    - apt-get install -y curl
    - curl -sL https://deb.nodesource.com/setup_8.x | bash
    - apt-get install -y xz-utils make nodejs
    - npm install psc-package
    - npm install purescript
    - npm install pulp
    - export PATH="$(pwd)/node_modules/.bin":$PATH
    - psc-package install
    - make test
    - export STACK_ROOT="$(pwd)/.stack"
    - stack setup
    - stack build
    - stack exec cooking build
  artifacts:
    paths:
      - public
  only:
    - master