From efa51ec8ed590cd484f39e5457fa558d58c8fa15 Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Mon, 13 Jan 2025 14:57:20 +0300 Subject: [PATCH] Cangjie tests to CI Signed-off-by: Sergey Malenkov --- .gitlab-ci.yml | 2 ++ incremental-cj/.gitlab-ci.yml | 43 +++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 incremental-cj/.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02f9a224e..0d5619e89 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ stages: - build-with-idlize - pre-deploy - deploy + - cangjie workflow: rules: @@ -25,6 +26,7 @@ include: - incremental/compiler-plugin/.gitlab-ci.yml - incremental/runtime/.gitlab-ci.yml - incremental/demo-playground/.gitlab-ci.yml + - incremental-cj/.gitlab-ci.yml - arkoala/.gitlab-ci.yml - arkoala/ets-plugin/.gitlab-ci.yml - arkoala/tools/peer-generator/.gitlab-ci.yml diff --git a/incremental-cj/.gitlab-ci.yml b/incremental-cj/.gitlab-ci.yml new file mode 100644 index 000000000..3706d59ec --- /dev/null +++ b/incremental-cj/.gitlab-ci.yml @@ -0,0 +1,43 @@ +# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +.cangjie-compiler: + script: + - cd incremental-cj + - curl --insecure https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327 | tar xfvz - + - source cangjie/envsetup.sh + - cd runtime + - sh CallsiteKey.sh + - cd - + +runtime tests (Cangjie): + stage: cangjie + interruptible: true + needs: [] + before_script: + - !reference [.setup, script] + - !reference [.cangjie-compiler, script] + script: + - cd runtime + - cjpm test + +demo playground (Cangjie): + stage: cangjie + interruptible: true + needs: [] + before_script: + - !reference [.setup, script] + - !reference [.cangjie-compiler, script] + script: + - cd demo-playground + - cjpm run -- Gitee