Fixed travis scripts

This commit is contained in:
Angelos Chalaris
2018-01-02 21:59:21 +02:00
parent a5b05fc3bc
commit 3eaf920db2

View File

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