aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml29
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