Skip to content

Commit

Permalink
Chore: Do not use cache when testing (#8464)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Apr 15, 2017
1 parent 9f540fd commit 10a1a2d
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Makefile.js
Expand Up @@ -509,20 +509,10 @@ target.all = function() {

target.lint = function() {
let errors = 0,
makeFileCache = " ",
jsCache = " ",
testCache = " ",
lastReturn;

// using the cache locally to speed up linting process
if (!process.env.TRAVIS) {
makeFileCache = " --cache --cache-file .cache/makefile_cache ";
jsCache = " --cache --cache-file .cache/js_cache ";
testCache = " --cache --cache-file .cache/test_cache ";
}

echo("Validating Makefile.js");
lastReturn = exec(ESLINT + makeFileCache + MAKEFILE);
lastReturn = exec(`${ESLINT} ${MAKEFILE}`);
if (lastReturn.code !== 0) {
errors++;
}
Expand All @@ -537,13 +527,13 @@ target.lint = function() {
}

echo("Validating JavaScript files");
lastReturn = exec(ESLINT + jsCache + JS_FILES);
lastReturn = exec(`${ESLINT} ${JS_FILES}`);
if (lastReturn.code !== 0) {
errors++;
}

echo("Validating JavaScript test files");
lastReturn = exec(`${ESLINT}${testCache}"tests/**/*.js"`);
lastReturn = exec(`${ESLINT} "tests/**/*.js"`);
if (lastReturn.code !== 0) {
errors++;
}
Expand Down

0 comments on commit 10a1a2d

Please sign in to comment.