Updated for cron jobs
This commit is contained in:
@ -12,6 +12,7 @@ script:
|
|||||||
- npm run linter
|
- npm run linter
|
||||||
- npm run builder
|
- npm run builder
|
||||||
- npm run webber
|
- npm run webber
|
||||||
|
- npm run module
|
||||||
after_success:
|
after_success:
|
||||||
- chmod +x .travis/push.sh
|
- chmod +x .travis/push.sh
|
||||||
- .travis/push.sh
|
- .travis/push.sh
|
||||||
|
|||||||
@ -1,6 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
Builds the `_30s` module.
|
Builds the `_30s` module.
|
||||||
*/
|
*/
|
||||||
|
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
|
||||||
|
if(isTravisCI && process.env['TRAVIS_EVENT_TYPE'] !== 'cron') {
|
||||||
|
console.log(`${chalk.green('NOBUILD')} Build terminated, not a cron job!`);
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
// Load modules
|
// Load modules
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const cp = require('child_process');
|
const cp = require('child_process');
|
||||||
|
|||||||
Reference in New Issue
Block a user