Script cleanup

This commit is contained in:
Angelos Chalaris
2018-09-22 13:29:27 +03:00
parent f97957778a
commit d353c83727
4 changed files with 13 additions and 22 deletions

View File

@ -102,6 +102,8 @@ const capitalize = (str, lowerRest = false) =>
str.slice(0, 1).toUpperCase() + (lowerRest ? str.slice(1).toLowerCase() : str.slice(1));
// Checks if current environment is Travis CI
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
const isNotTravisCronOrAPI = () => process.env['TRAVIS_EVENT_TYPE'] !== 'cron' &&
process.env['TRAVIS_EVENT_TYPE'] !== 'api';
// Creates a hash for a value using the SHA-256 algorithm.
const hashData = val =>
crypto