Fixed the travis process

This commit is contained in:
Angelos Chalaris
2018-01-02 17:55:41 +02:00
parent 85829a68f5
commit a49e075d24

View File

@ -8,8 +8,7 @@ const path = require('path');
const chalk = require('chalk');
// Load helper functions (these are from existing snippets in 30 seconds of code!)
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
// Check if on Travis and, if not a cron job, terminate.
if(isTravisCI && process.env['TRAVIS_EVENT_TYPE'] !== 'cron') {
if(isTravisCI() && process.env['TRAVIS_EVENT_TYPE'] !== 'cron') {
console.log(`${chalk.green('NOBUILD')} Build terminated, not a cron job!`);
process.exit(0);
}