Add GitLab CI configuration
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
8fae7f406e
commit
d5b358ca3c
1 changed files with 31 additions and 0 deletions
31
.gitlab-ci.yml
Normal file
31
.gitlab-ci.yml
Normal 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
|
Loading…
Reference in a new issue