diff options
author | Joris | 2017-03-05 15:44:50 +0100 |
---|---|---|
committer | Joris | 2017-03-05 15:44:50 +0100 |
commit | 8e448ffc31685427afaee62a0379c33525769a6a (patch) | |
tree | 4199b4aaf6734718f3ff65afcab422e46543ddea /.gitlab-ci.yml | |
parent | a269afd23073d03faee7f3c17bdbcf8f6b5de903 (diff) |
Use stack
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d48e511..0e2ed34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,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 site build + except: + - master + pages: + cache: + paths: + - _cache + - .stack script: - - ls public + - stack exec site build artifacts: paths: - - public + - public only: - - demo + - master |