aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJoris2017-03-05 15:44:50 +0100
committerJoris2017-03-05 15:44:50 +0100
commit8e448ffc31685427afaee62a0379c33525769a6a (patch)
tree4199b4aaf6734718f3ff65afcab422e46543ddea /.gitlab-ci.yml
parenta269afd23073d03faee7f3c17bdbcf8f6b5de903 (diff)
downloadcooking-8e448ffc31685427afaee62a0379c33525769a6a.tar.gz
cooking-8e448ffc31685427afaee62a0379c33525769a6a.tar.bz2
cooking-8e448ffc31685427afaee62a0379c33525769a6a.zip
Use stack
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