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