This repository was archived by the owner on Apr 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcortex-python.gocd.yaml
More file actions
127 lines (126 loc) · 3.78 KB
/
cortex-python.gocd.yaml
File metadata and controls
127 lines (126 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
format_version: 10
common:
testreports: &testReports
coverage: testoutput/coverage/index.html
test-report: testoutput/coverage/test-report.html
pipelines:
cortex-python-pr:
group: pull-requests
materials:
cortex-python:
plugin_configuration:
id: github.pr
version: 1
options:
url: git@github.com:CognitiveScale/cortex-python.git
defaultBranch: develop
environment_variables:
ALPHA_BUILD: "true"
SONAR_USER_HOME: "/tmp"
stages:
- build:
clean_workspace: true
jobs:
build:
artifacts:
- test:
source: coverage
tabs: *testReports
elastic_profile_id: gocd-agent-dind-2023
tasks:
- script: c12e-ci -l
cortex-python-develop:
group: fabric6
materials:
cortex-python:
git: git@github.com:CognitiveScale/cortex-python.git
branch: develop
environment_variables:
ALPHA_BUILD: "true"
SONAR_USER_HOME: "/tmp"
stages:
- build:
clean_workspace: true
jobs:
build:
artifacts:
- test:
source: coverage
tabs: *testReports
elastic_profile_id: gocd-agent-dind-2023
tasks:
- script: |
set -eux
c12e-common.sh dev
sonar-scan.sh scan
cortex-python-staging:
group: fabric6
environment_variables:
ALPHA_BUILD: "true"
PYPI_UPLOAD: "https://upload.pypi.org/legacy/"
REPO_NAME: "cs_internal-local"
REPO_USER: "__token__"
SONAR_USER_HOME: "/tmp"
materials:
cortex-python:
git: git@github.com:CognitiveScale/cortex-python.git
branch: staging
stages:
- build:
clean_workspace: true
jobs:
build:
elastic_profile_id: gocd-agent-dind-2023
tasks:
- script: |
set -eux
c12e-common.sh staging
sonar-scan.sh scan
export REPO_PASSWORD=${PYPI_TOKEN}
publish-distribution.sh -i -e
cortex-python-master:
group: fabric6
environment_variables:
ALPHA_BUILD: "false"
PYPI_UPLOAD: "https://upload.pypi.org/legacy/"
REPO_NAME: "cognitivescale_local"
REPO_USER: "__token__"
SONAR_USER_HOME: "/tmp"
materials:
cortex-python-master:
git: git@github.com:CognitiveScale/cortex-python.git
branch: main
stages:
- build:
clean_workspace: yes
jobs:
build:
tabs: *testReports
elastic_profile_id: gocd-agent-dind-2023
artifacts:
- build:
source: cortex-python.docs.tgz
- test:
source: coverage
tasks:
- script: |
set -eux
c12e-common.sh master
export REPO_PASSWORD=${PYPI_TOKEN}
publish-distribution.sh -i -e
- publish:
approval:
type: manual
clean_workspace: true
jobs:
publishJob:
elastic_profile_id: gocd-agent-dind-2023
tasks:
- fetch:
pipeline: cortex-python-master
stage: build
job: build
source: cortex-python.docs.tgz
is_file: yes
- script: |
publish-gh-pages.sh -d cortex-python.docs.tgz -r git@github.com:CognitiveScale/cortex-python.git -b ${GH_PAGES_BRANCH} -k .nojekyll