idlize

Форк
0
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

14
build compiler-plugin:
15
    stage: build-compiler
16
    interruptible: true
17
    extends: .linux-vm-shell-task
18
    before_script:
19
        - !reference [.setup, script]
20
        - npm ci --no-audit --no-fund
21
        - cd compiler-plugin
22
    script:
23
        - npm run compile
24
    needs:
25
        - build compat
26
        - build common
27
    artifacts:
28
        expire_in: 2 days
29
        paths:
30
            - compiler-plugin/build/lib
31

32
test compiler-plugin:
33
    stage: test
34
    interruptible: true
35
    extends: .linux-vm-shell-task
36
    before_script:
37
        - !reference [.setup, script]
38
        - cd compiler-plugin
39
    script:
40
        - npm run test
41
    needs:
42
        - build compat
43
        - build common
44
        - build compiler-plugin
45

46
pack compiler-plugin:
47
    extends: 
48
        - .npm-pack
49
        - .linux-vm-shell-task
50
    variables:
51
        PACKAGE_DIR: compiler-plugin
52
    needs:
53
        - build compiler-plugin
54
        - test compiler-plugin
55

56
publish compiler-plugin:
57
    extends: 
58
        - .npm-publish
59
        - .linux-vm-shell-task
60
    variables:
61
        PACKAGE_DIR: compiler-plugin
62
    dependencies:
63
        - build compiler-plugin
64
        - test compiler-plugin
65

66
publish compiler-plugin (release):
67
    extends: 
68
        - .npm-publish-release
69
        - .linux-vm-shell-task
70
    variables:
71
        PACKAGE_DIR: compiler-plugin
72
    dependencies:
73
        - build compiler-plugin
74
        - test compiler-plugin
75

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.