-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
61 lines (53 loc) · 1.24 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
stages:
- build
- test
- publish
variables:
GIT_DEPTH: 0
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: recursive
NPM_TOKEN: $CI_JOB_TOKEN
include:
- project: 'hive/common-ci-configuration'
ref: d34967496fcf2bb520426aba537dcd5048ad41b2
file:
- '/templates/wasm_build.gitlab-ci.yml'
build_hb_auth:
extends: .npm_build_template
stage: build
variables:
DIST_DIR: "${CI_PROJECT_DIR}/dist"
NPM_PACKAGE_SCOPE: "@hiveio"
NPM_PACKAGE_NAME: "hb-auth"
tags:
- public-runner-docker
artifacts:
paths:
- "${DIST_DIR}/*.tgz" # Built package
- "$CI_PROJECT_DIR/package.json"
- "$CI_PROJECT_DIR/dist"
- "$CI_PROJECT_DIR/README.md"
- "$CI_PROJECT_DIR/api.md"
- "$CI_PROJECT_DIR/LICENSE.md"
test_hb_auth:
extends: .npm_test_template
variables:
PACKAGE_TGZ_PATH: "${BUILT_PACKAGE_PATH}"
needs:
- job: build_hb_auth
artifacts: true
stage: test
tags:
- public-runner-docker
publish_hb_auth:
extends: .npm_deploy_package_template
stage: publish
variables:
PACKAGE_TGZ_PATH: "${BUILT_PACKAGE_PATH}"
NPM_PACKAGE_SCOPE: "@hiveio"
needs:
- job: test_hb_auth
- job: build_hb_auth
artifacts: true
tags:
- public-runner-docker