From 548264f72117895111c852e849b3d05a67cd693a Mon Sep 17 00:00:00 2001 From: SANDEEP KUMAR JAISAWAL Date: Mon, 21 Nov 2022 19:32:49 +0530 Subject: [PATCH] Update tm ci file Issue-id: AIMLWF-5 Signed-off-by: SANDEEP KUMAR JAISAWAL Change-Id: I6bef001cced6cc0f49894b3b8b48cccd4b1e65e8 --- jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml b/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml index 54d8702c..ca30280f 100644 --- a/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml +++ b/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml @@ -51,3 +51,48 @@ stream: - master: branch: master +- project: + <<: *aiml_tm_docker_common + name: aiml-fw-awmf-tm-tox-verify + # the install script assumes an ubuntu image + build-node: ubuntu1804-builder-2c-2g + python-version: python3 + # skip docs on verify + tox-envs: code + tox-dir: '.' + # do not trigger on changes in docs, releases + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'trainingmgr/.*' + stream: + # run verify on all branches + # the ANT pattern is **/{branch}, we are exploiting that. + - all: + branch: master + jobs: + - gerrit-tox-verify + +- project: + <<: *aiml_tm_docker_common + name: aiml-fw-awmf-tm-sonarqube + python-version: python3 + tox-dir: '.' + # the install script assumes an ubuntu image + build-node: ubuntu1804-builder-2c-2g + # do not trigger on changes in docs, releases + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'trainingmgr/.*' + sonar-project-file: "" + sonar-properties: | + sonar.login={sonarcloud_api_token} + sonar.projectKey={sonarcloud_project_organization}_{project-name} + sonar.projectName={project-name} + sonar.organization={sonarcloud_project_organization} + sonar.build.sourceEncoding=UTF-8 + sonar.sources=trainingmgr/ + sonar.python.coverage.reportPaths=trainingmgr/coverage.xml + sonar.inclusions=trainingmgr/**.py + sonar.exclusions=tests/**.py + jobs: + - gerrit-tox-sonarqube -- 2.16.6