This repository was archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
73 lines (63 loc) · 1.38 KB
/
.gitlab-ci.yml
File metadata and controls
73 lines (63 loc) · 1.38 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.node_docker:
timeout: "10m"
image: node:lts-alpine
.chromium_docker:
timeout: "10m"
variables:
CHROME_BIN: "chromium-browser"
image: zenika/alpine-chrome:83-with-node-12
variables:
YARN_CACHE_FOLDER: &yarn_cache_path "$CI_PROJECT_DIR/.yarn_cache_pdf_wrap"
cache:
key: "pdf_wrap_yarn_node_cache-$CI_COMMIT_REF_SLUG"
paths:
- *yarn_cache_path
before_script:
- yarn install --frozen-lockfile --non-interactive --link-duplicates
stages:
- lint
- build
- test
- deploy
lint:
stage: lint
extends: .node_docker
script: yarn workspace @srag/pdf-wrap run gulp lint
build:
stage: build
extends: .node_docker
script: yarn workspace @srag/pdf-wrap run gulp repackage
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- pdf-wrap/lib
- pdf-wrap/assets
expire_in: 30 days
test:code:
stage: test
extends: .chromium_docker
script: yarn workspace @srag/pdf-wrap run gulp test
test:deploy_dry_run:
stage: test
extends: .node_docker
script:
- npm publish pdf-wrap --dry-run --access public
dependencies:
- build
test:authorization:
stage: test
extends: .node_docker
script:
- npm whoami
deploy:
stage: deploy
extends: .node_docker
only:
- /^v\d+\.\d+\.\d+$/
except:
- branches
script: npm publish pdf-wrap --access public
when: manual
dependencies:
- build
allow_failure: false