Add GitLab CI configuration

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-01-15 19:10:12 +05:30
parent 8fae7f406e
commit d5b358ca3c

31
.gitlab-ci.yml Normal file
View file

@ -0,0 +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:
- stack exec site build
artifacts:
paths:
- public
only:
- master