-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
106 lines (97 loc) · 1.71 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
image: node:carbon
before_script:
- cat /etc/os-release
- command -v node npm yarn
- node --version
- npm --version
- yarn --version
- yarn install
stages:
- lint
- transpile
- test
- build
# - deploy
lint:
stage: lint
script:
- yarn lint
tags:
- docker
transpile:
stage: transpile
script:
- yarn build
artifacts:
when: on_success
name: ${CI_COMMIT_REF_NAME}${CI_JOB_NAME}
paths:
- dist/
tags:
- docker
test:
stage: test
script:
- yarn test
dependencies:
- transpile
tags:
- docker
# Not needed for a node application but for browser libs.
# For node apps, transpilation is enough
# build:dist:
# stage: build
# script:
# - yarn run grunt browserify
# - yarn run grunt uglify
# dependencies:
# - transpile
# artifacts:
# when: on_success
# name: ${CI_COMMIT_REF_NAME}${CI_JOB_NAME}
# paths:
# - dist/
# tags:
# - docker
# TODO (need implementation of "yarn docs")
# build:docs:
# stage: build
# script:
# - yarn build:docs
# artifacts:
# when: on_success
# name: ${CI_COMMIT_REF_NAME}${CI_JOB_NAME}
# paths:
# - docs/
# tags:
# - docker
# TODO (need implementation of "yarn release patch|minor|major|prerelease")
# publish:
# stage: deploy
# script:
# - npm publish
# dependencies:
# - transpile
# artifacts:
# when: on_success
# name: ${CI_COMMIT_REF_NAME}${CI_JOB_NAME}
# paths:
# - dist/
# tags:
# - docker
# TODO (need implementation of "yarn docs")
# pages:
# stage: deploy
# script:
# - mv build/docs/esdoc public
# - ls -al public/
# dependencies:
# - build:docs
# artifacts:
# when: on_success
# paths:
# - public
# only:
# - master
# tags:
# - docker