UNPKG

@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

34 lines (33 loc) 888 B
import { CIProviderBase } from './index.js'; export class CircleCI extends 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'; } }