From d5b358ca3c87d815d15e48189dc7ad6c382d44bc Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 15 Jan 2019 19:10:12 +0530 Subject: [PATCH] Add GitLab CI configuration Signed-off-by: Sanchayan Maity --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0e2ed34 --- /dev/null +++ b/.gitlab-ci.yml @@ -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