@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) • 799 B
JavaScript
import { CIProviderBase } from './index.js';
export class TravisCI extends CIProviderBase {
static get ciNodeTotal() {
return undefined;
}
static get ciNodeIndex() {
return undefined;
}
static get ciNodeBuildId() {
return process.env.TRAVIS_BUILD_NUMBER;
}
static get ciNodeRetryCount() {
return undefined;
}
static get commitHash() {
return process.env.TRAVIS_COMMIT;
}
static get branch() {
return process.env.TRAVIS_BRANCH;
}
static get userSeat() {
return undefined;
}
static get detect() {
return 'TRAVIS' in process.env ? this : null;
}
static get fixedQueueSplit() {
return true;
}
static get ciProvider() {
return 'Travis CI';
}
}