smartci/ts/index.ts

15 lines
330 B
TypeScript
Raw Permalink Normal View History

2016-03-22 23:12:17 +00:00
import plugins = require("./smartci.plugins");
import SmartCiGet = require("./smartci.get");
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 = () => {
return typeof process.env.CI_BUILD_TAG != "undefined";
}