@knapsack-pro/core
Version:
Knapsack Pro Core library splits tests across CI nodes and makes sure that tests will run in optimal time on each CI node. This library gives core features like communication with KnapsackPro.com API. This library is a dependency for other projects specif
38 lines (37 loc) • 997 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CircleCI = void 0;
const _1 = require(".");
class CircleCI extends _1.CIProviderBase {
static get ciNodeTotal() {
return process.env.CIRCLE_NODE_TOTAL;
}
static get ciNodeIndex() {
return process.env.CIRCLE_NODE_INDEX;
}
static get ciNodeBuildId() {
return process.env.CIRCLE_BUILD_NUM;
}
static get ciNodeRetryCount() {
return undefined;
}
static get commitHash() {
return process.env.CIRCLE_SHA1;
}
static get branch() {
return process.env.CIRCLE_BRANCH;
}
static get userSeat() {
return process.env.CIRCLE_USERNAME || process.env.CIRCLE_PR_USERNAME;
}
static get detect() {
return 'CIRCLECI' in process.env ? this : null;
}
static get fixedQueueSplit() {
return false;
}
static get ciProvider() {
return 'CircleCI';
}
}
exports.CircleCI = CircleCI;