@argos-ci/core 0.8.2-alpha.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +26 -8
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ const schema = {
|
|
|
68
68
|
},
|
|
69
69
|
prHeadCommit: {
|
|
70
70
|
env: "ARGOS_PR_HEAD_COMMIT",
|
|
71
|
-
format:
|
|
71
|
+
format: String,
|
|
72
72
|
default: null,
|
|
73
73
|
nullable: true
|
|
74
74
|
},
|
|
@@ -144,7 +144,7 @@ const createConfig = ()=>{
|
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
-
const service$
|
|
147
|
+
const service$5 = {
|
|
148
148
|
name: "Buildkite",
|
|
149
149
|
detect: ({ env })=>Boolean(env.BUILDKITE),
|
|
150
150
|
config: ({ env })=>{
|
|
@@ -162,7 +162,7 @@ const service$4 = {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
const service$
|
|
165
|
+
const service$4 = {
|
|
166
166
|
name: "Heroku",
|
|
167
167
|
detect: ({ env })=>Boolean(env.HEROKU_TEST_RUN_ID),
|
|
168
168
|
config: ({ env })=>({
|
|
@@ -197,7 +197,7 @@ const readEventPayload = ({ env })=>{
|
|
|
197
197
|
if (!existsSync(env.GITHUB_EVENT_PATH)) return null;
|
|
198
198
|
return JSON.parse(readFileSync(env.GITHUB_EVENT_PATH, "utf-8"));
|
|
199
199
|
};
|
|
200
|
-
const service$
|
|
200
|
+
const service$3 = {
|
|
201
201
|
name: "GitHub Actions",
|
|
202
202
|
detect: ({ env })=>Boolean(env.GITHUB_ACTIONS),
|
|
203
203
|
config: ({ env })=>{
|
|
@@ -229,7 +229,7 @@ const getPrNumber$1 = ({ env })=>{
|
|
|
229
229
|
}
|
|
230
230
|
return null;
|
|
231
231
|
};
|
|
232
|
-
const service$
|
|
232
|
+
const service$2 = {
|
|
233
233
|
name: "CircleCI",
|
|
234
234
|
detect: ({ env })=>Boolean(env.CIRCLECI),
|
|
235
235
|
config: ({ env })=>{
|
|
@@ -260,7 +260,7 @@ const getPrNumber = ({ env })=>{
|
|
|
260
260
|
if (env.TRAVIS_PULL_REQUEST) return Number(env.TRAVIS_PULL_REQUEST);
|
|
261
261
|
return null;
|
|
262
262
|
};
|
|
263
|
-
const service = {
|
|
263
|
+
const service$1 = {
|
|
264
264
|
name: "Travis CI",
|
|
265
265
|
detect: ({ env })=>Boolean(env.TRAVIS),
|
|
266
266
|
config: (ctx)=>{
|
|
@@ -278,6 +278,23 @@ const service = {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
+
const service = {
|
|
282
|
+
name: "GitLab",
|
|
283
|
+
detect: ({ env })=>env.GITLAB_CI === "true",
|
|
284
|
+
config: ({ env })=>{
|
|
285
|
+
return {
|
|
286
|
+
commit: env.CI_COMMIT_SHA || null,
|
|
287
|
+
branch: env.CI_COMMIT_REF_NAME || null,
|
|
288
|
+
owner: null,
|
|
289
|
+
repository: null,
|
|
290
|
+
jobId: null,
|
|
291
|
+
runId: null,
|
|
292
|
+
prNumber: null,
|
|
293
|
+
prHeadCommit: null
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
|
|
281
298
|
const KEY = "@argos-ci/core";
|
|
282
299
|
const debug = createDebug(KEY);
|
|
283
300
|
const debugTime = (arg)=>{
|
|
@@ -319,11 +336,12 @@ const getCiEnvironmentFromEnvCi = (ctx)=>{
|
|
|
319
336
|
};
|
|
320
337
|
|
|
321
338
|
const services = [
|
|
339
|
+
service$4,
|
|
322
340
|
service$3,
|
|
323
341
|
service$2,
|
|
324
342
|
service$1,
|
|
325
|
-
service,
|
|
326
|
-
service
|
|
343
|
+
service$5,
|
|
344
|
+
service
|
|
327
345
|
];
|
|
328
346
|
const getCiEnvironment = ({ env =process.env } = {})=>{
|
|
329
347
|
const ctx = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/core",
|
|
3
3
|
"description": "Visual testing solution to avoid visual regression. The core component of Argos SDK that handles build creation.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rm -rf dist",
|
|
7
7
|
"build": "rollup -c",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"rollup-plugin-dts": "^4.2.3",
|
|
61
61
|
"rollup-plugin-swc3": "^0.6.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "9b298c1a7cd6f0f3b45a7ea7e1748c5f632ae606"
|
|
64
64
|
}
|