1
0
mirror of https://github.com/DoublesunRUS/devscripts.git synced 2026-06-11 22:46:51 +02:00

Интеграция / Развертывание

This commit is contained in:
Капралов Александр
2021-09-02 11:43:16 +03:00
parent 1483a83e6b
commit 3eff4782c7
3 changed files with 694 additions and 260 deletions
-82
View File
@@ -1,82 +0,0 @@
before_script:
- CHCP 65001
stages:
- build
- test
- report
variables:
WP: '${CI_PROJECT_DIR}/temp/wp'
buildMR:
stage: build
tags:
- 1c-edt
only:
- merge_requests
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl buildMR
artifacts:
name: build
paths:
- build/
- ci/
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- $env:WP
testCore:
stage: test
tags:
- 1c-edt
only:
- merge_requests
dependencies:
- buildMR
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl testCore
artifacts:
name: test
reports:
junit: test/junit/*.xml
paths:
- test/
- ci/
testUI:
stage: test
tags:
- 1c-ui
only:
- merge_requests
dependencies:
- buildMR
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl testUI
artifacts:
name: test
reports:
junit: test/junit/*.xml
paths:
- test/
- ci/
pages:
stage: report
tags:
- 1c-edt
only:
- merge_requests
dependencies:
- testUI
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl pages
artifacts:
paths:
- ci/
- public/
environment:
name: allure
url: https://${CI_SERVER_HOST}/${CI_PROJECT_PATH}/-/jobs/${CI_JOB_ID}/artifacts/file/public/index.html
@@ -10,14 +10,46 @@ stages:
variables:
WP: '${CI_PROJECT_DIR}/temp/wp'
build:
buildMaster:
stage: build
tags:
- 1c-edt
only:
- master
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl buildMaster
artifacts:
name: build
paths:
- build/
- ci/
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- $env:WP
buildMergeRequest:
stage: build
tags:
- 1c-edt
only:
- merge_requests
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl buildMergeRequest
artifacts:
name: build
paths:
- build/
- ci/
buildRelease:
stage: build
tags:
- 1c-edt
only:
- schedules
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl build
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl buildRelease
artifacts:
name: build
paths:
@@ -33,9 +65,13 @@ testCore:
tags:
- 1c-edt
only:
- master
- schedules
- merge_requests
dependencies:
- build
- buildMaster
- buildMergeRequest
- buildRelease
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl testCore
artifacts:
@@ -52,8 +88,10 @@ testUI:
- 1c-ui
only:
- schedules
- merge_requests
dependencies:
- build
- buildRelease
- buildMergeRequest
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl testUI
artifacts:
@@ -64,12 +102,31 @@ testUI:
- test/
- ci/
code_quality:
stage: report
tags:
- 1c-edt
only:
- master
- merge_requests
dependencies:
- testCore
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl qualityCode
artifacts:
reports:
codequality: test/codequality/*.json
paths:
- test/
- ci/
pages:
stage: report
tags:
- 1c-edt
only:
- schedules
- merge_requests
dependencies:
- testUI
script:
@@ -93,4 +150,4 @@ release:
- testUI
- pages
script:
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl release
- executor_j11 -s $env:CI_SCRIPTS/1cicd.sbsl release
+632 -173
View File
File diff suppressed because it is too large Load Diff