From eb156a95318f1dd7975a5b0754fc461dd54ecb88 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 5 Apr 2020 11:07:49 +0530 Subject: [PATCH] Update gitlab ci configuration Expecting the changes to do the builds faster. Signed-off-by: Sanchayan Maity --- .gitlab-ci.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e2ed34..d23d66c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,27 +1,16 @@ -image: haskell:latest +image: haskell:8.6.3 -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 +variables: + STACK_ROOT: $CI_PROJECT_DIR/.stack pages: cache: paths: - _cache - .stack + before_script: + - stack install --only-dependencies + - stack build script: - stack exec site build artifacts: