-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathconstants.py
222 lines (220 loc) · 7.19 KB
/
constants.py
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
ci = {
"travis": {
"title": "Travis-CI",
"icon": "travis",
"require_token_when_public": False,
"instructions": "travis",
"build_url": "https://travis-ci.com/{owner.username}/{repo.name}/jobs/{upload.job_code}",
},
"azure_pipelines": {
"title": "Azure",
"icon": "azure_pipelines",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"docker": {
"title": "Docker",
"icon": "custom",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"buildbot": {
"title": "Buildbot",
"icon": "buildbot",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"cirrus-ci": {
"title": "Cirrus CI",
"icon": "cirrus-ci",
"require_token_when_public": False,
"instructions": "generic",
"build_url": "https://cirrus-ci.com/build/{upload.build_code}",
},
"codebuild": {
"title": "AWS Codebuild",
"icon": "codebuild",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"codefresh": {
"title": "Codefresh",
"icon": "custom",
"require_token_when_public": True,
"instructions": "generic",
"build_url": "https://g.codefresh.io/repositories/{owner.username}/{repo.name}/builds/{upload.build_code}",
},
"bitbucket": {
"title": "Bitbucket Pipelines",
"icon": "bitbucket",
"require_token_when_public": False,
"instructions": "generic",
"build_url": "https://bitbucket.org/{owner.username}/{repo.name}/addon/pipelines/home#!/results/{upload.job_code}",
},
"circleci": {
"title": "CircleCI",
"icon": "circleci",
"require_token_when_public": False,
"instructions": "circleci",
"build_url": "https://circleci.com/{service_short}/{owner.username}/{repo.name}/{upload.build_code}#tests/containers/{upload.job_code}",
},
"buddybuild": {
"title": "buddybuild",
"icon": "custom",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"buddy": {
"title": "buddy",
"icon": "custom",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"github-actions": {
"title": "GitHub Actions",
"icon": "github-actions",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"solano": {
"title": "Solano",
"icon": "custom",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"teamcity": {
"title": "TeamCity",
"icon": "teamcity",
"require_token_when_public": True,
"instructions": "teamcity",
"build_url": None,
},
"appveyor": {
"title": "AppVeyor",
"icon": "appveyor",
"require_token_when_public": False,
"instructions": "appveyor",
"build_url": None,
},
"wercker": {
"title": "Wercker",
"icon": "wercker",
"require_token_when_public": True,
"instructions": "generic",
"build_url": "https://app.wercker.com/#build/{upload.build_code}",
},
"shippable": {
"title": "Shippable",
"icon": "shippable",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
"codeship": {
"title": "Codeship",
"icon": "codeship",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
"drone.io": {
"title": "Drone.io",
"icon": "drone.io",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
"jenkins": {
"title": "Jenkins",
"icon": "jenkins",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
"semaphore": {
"title": "Semaphore",
"icon": "semaphore",
"require_token_when_public": True,
"instructions": "generic",
"build_url": "https://semaphoreapp.com/{owner.username}/{repo.name}/branches/{commit.branch}/builds/{upload.build_code}",
},
"gitlab": {
"title": "GitLab CI",
"icon": "gitlab",
"require_token_when_public": True,
"instructions": "generic",
"build_url": "https://gitlab.com/{owner.username}/{repo.name}/builds/{upload.build_code}",
},
"bamboo": {
"title": "Bamboo",
"icon": "bamboo",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"buildkite": {
"title": "BuildKite",
"icon": "buildkite",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
"bitrise": {
"title": "Bitrise",
"icon": "bitrise",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
"greenhouse": {
"title": "Greenhouse",
"icon": "greenhouse",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"heroku": {
"title": "Heroku",
"icon": "heroku",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None,
},
"woodpecker": {
"title": "WoodpeckerCI",
"icon": "custom",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
"custom": {
"title": "Custom",
"icon": "custom",
"require_token_when_public": True,
"instructions": "generic",
"build_url": None, # provided in upload,
},
}
errors = {
"travis": {
"tokenless-general-error": "\nERROR: Tokenless uploads are only supported for public repositories on Travis that can be verified through the Travis API. Please use an upload token if your repository is private and specify it via the -t flag. You can find the token for this repository at the url below on codecov.io (login required):\n\nRepo token: {}\nDocumentation: https://docs.codecov.io/docs/about-the-codecov-bash-uploader#section-upload-token",
"tokenless-stale-build": "\nERROR: The coverage upload was rejected because the build is out of date. Please make sure the build is not stale for uploads to process correctly.",
"tokenless-bad-status": "\nERROR: The build status does not indicate that the current build is in progress. Please make sure the build is in progress or was finished within the past 4 minutes to ensure reports upload properly.",
}
}
global_upload_token_providers = [
"github",
"github_enterprise",
"gitlab",
"gitlab_enterprise",
"bitbucket",
"bitbucket_server",
]