-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
55 lines (55 loc) · 1.08 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
image: node:8.11.1-alpine
stages: [setup, verify, deploy]
yarn:
stage: setup
cache:
paths:
- .yarn-cache/
script:
- &run_yarn
yarn --cache-folder=.yarn-cache --pure-lockfile > /dev/null
lint:
stage: verify
cache: &pull_cache
policy: pull
paths:
- .yarn-cache/
script:
- *run_yarn
- node_modules/.bin/gulp lint
bundle-stable:
stage: deploy
only:
- master@gmarpons/antora-ui-default
cache: *pull_cache
script:
- *run_yarn
- node_modules/.bin/gulp pack
artifacts:
paths:
- build/ui-bundle.zip
bundle-dev:
stage: deploy
except:
- master
cache: *pull_cache
script:
- *run_yarn
- node_modules/.bin/gulp pack
artifacts:
expire_in: 1 day # unless marked as keep from job page
paths:
- build/ui-bundle.zip
pages:
stage: deploy
only:
- master@gmarpons/antora-ui-default
cache: *pull_cache
script:
- *run_yarn
- node_modules/.bin/gulp build:preview
# FIXME figure out a way to avoid copying these files to preview site
- rm -rf public/_/{helpers,layouts,partials}
artifacts:
paths:
- public