idlize
74 строки · 2.0 Кб
1# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14build compiler-plugin:
15stage: build-compiler
16interruptible: true
17extends: .linux-vm-shell-task
18before_script:
19- !reference [.setup, script]
20- npm ci --no-audit --no-fund
21- cd compiler-plugin
22script:
23- npm run compile
24needs:
25- build compat
26- build common
27artifacts:
28expire_in: 2 days
29paths:
30- compiler-plugin/build/lib
31
32test compiler-plugin:
33stage: test
34interruptible: true
35extends: .linux-vm-shell-task
36before_script:
37- !reference [.setup, script]
38- cd compiler-plugin
39script:
40- npm run test
41needs:
42- build compat
43- build common
44- build compiler-plugin
45
46pack compiler-plugin:
47extends:
48- .npm-pack
49- .linux-vm-shell-task
50variables:
51PACKAGE_DIR: compiler-plugin
52needs:
53- build compiler-plugin
54- test compiler-plugin
55
56publish compiler-plugin:
57extends:
58- .npm-publish
59- .linux-vm-shell-task
60variables:
61PACKAGE_DIR: compiler-plugin
62dependencies:
63- build compiler-plugin
64- test compiler-plugin
65
66publish compiler-plugin (release):
67extends:
68- .npm-publish-release
69- .linux-vm-shell-task
70variables:
71PACKAGE_DIR: compiler-plugin
72dependencies:
73- build compiler-plugin
74- test compiler-plugin
75