]> git.evergreen-ils.org Git - working/eg-antora.git/blob - .gitlab-ci.yml
Fixing header download link for Evergreen downloads
[working/eg-antora.git] / .gitlab-ci.yml
1 image: node:10.14.2-stretch
2 stages: [setup, verify, deploy]
3 install:
4   stage: setup
5   cache:
6     paths:
7     - .cache/npm
8   script:
9   - &npm_install
10     npm install --quiet --no-progress --cache=.cache/npm
11 lint:
12   stage: verify
13   cache: &pull_cache
14     policy: pull
15     paths:
16     - .cache/npm
17   script:
18   - *npm_install
19   - node_modules/.bin/gulp lint
20 bundle-stable:
21   stage: deploy
22   only:
23   - master@antora/antora-ui-default
24   cache: *pull_cache
25   script:
26   - *npm_install
27   - node_modules/.bin/gulp bundle
28   artifacts:
29     paths:
30     - build/ui-bundle.zip
31 bundle-dev:
32   stage: deploy
33   except:
34   - master
35   cache: *pull_cache
36   script:
37   - *npm_install
38   - node_modules/.bin/gulp bundle
39   artifacts:
40     expire_in: 1 day # unless marked as keep from job page
41     paths:
42     - build/ui-bundle.zip
43 pages:
44   stage: deploy
45   only:
46   - master@antora/antora-ui-default
47   cache: *pull_cache
48   script:
49   - *npm_install
50   - node_modules/.bin/gulp preview:build
51   # FIXME figure out a way to avoid copying these files to preview site
52   - rm -rf public/_/{helpers,layouts,partials}
53   artifacts:
54     paths:
55     - public