Update gitlab ci configuration

Expecting the changes to do the builds faster.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-04-05 11:07:49 +05:30
parent be7593fab6
commit eb156a9531

View file

@ -1,27 +1,16 @@
image: haskell:latest image: haskell:8.6.3
before_script: variables:
- apt-get update && apt-get install xz-utils make STACK_ROOT: $CI_PROJECT_DIR/.stack
- 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: pages:
cache: cache:
paths: paths:
- _cache - _cache
- .stack - .stack
before_script:
- stack install --only-dependencies
- stack build
script: script:
- stack exec site build - stack exec site build
artifacts: artifacts: