From a49e075d24bc44ae5efd5958297769ca515965c3 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 2 Jan 2018 17:55:41 +0200 Subject: [PATCH] Fixed the travis process --- scripts/module.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/module.js b/scripts/module.js index 4d8afad0c..cd812d7d1 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -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); }