smartci/ts/index.ts
2018-02-26 20:02:11 +01:00

14 lines
272 B
TypeScript

import plugins = require('./smartci.plugins');
export let isCi = function(): boolean {
if (process.env.CI == 'true') {
return true;
} else {
return false;
}
};
export let isTaggedCommit = () => {
return typeof process.env.CI_BUILD_TAG != 'undefined';
};