-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
41 lines (38 loc) · 1.01 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
image: "haskell:latest"
before_script:
- apt-get update && apt-get install -y make openssh-client xz-utils tidy linkchecker
# add woraround to properly fetch packages as git repos from Github, Gitlab
- ssh-keygen -t rsa -C "[email protected]" -f ~/.ssh/id_rsa
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
- git config --global url."https://github.com/".insteadOf "[email protected]:"
- git config --global url."https://gitlab.com/".insteadOf "[email protected]:"
# prepare dependency cache for further reuse
- export STACK_ROOT=`pwd`/.stack
- stack new sitecom simple-slick.hsfiles
- cd sitecom/
- stack setup
- stack install --only-dependencies
- stack build
build:
cache:
paths:
- _cache
- .stack
script:
- stack exec -- site
except:
- master
pages:
cache:
paths:
- _cache
- .stack
script:
- stack exec -- site
- mv public ../public
artifacts:
paths:
- public
only:
- master