2018-02-26 19:02:11 +00:00
|
|
|
import plugins = require('./smartci.plugins');
|
2016-07-27 23:22:06 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2016-07-27 23:22:06 +00:00
|
|
|
export let isTaggedCommit = () => {
|
2018-02-26 19:02:11 +00:00
|
|
|
return typeof process.env.CI_BUILD_TAG != 'undefined';
|
|
|
|
};
|