smartci/ts/index.ts

14 lines
272 B
TypeScript
Raw Normal View History

2018-02-26 19:02:11 +00:00
import plugins = require('./smartci.plugins');
2018-02-26 19:02:11 +00:00
export let isCi = function(): boolean {
if (process.env.CI == 'true') {
return true;
} else {
return false;
}
2015-12-01 05:03:33 +00:00
};
export let isTaggedCommit = () => {
2018-02-26 19:02:11 +00:00
return typeof process.env.CI_BUILD_TAG != 'undefined';
};