diff --git a/package.json b/package.json index ba0ec3a85a5..72c1051096a 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "flow": "flow; test $? -eq 0 -o $? -eq 2", "lint": "standard", "postinstall": "npm run download-sync-client && webpack", + "pre-push-tests": "if [ -z $NO_PUSH_TESTS ]; then npm run unittest; fi", "start-log": "node ./tools/start.js --user-data-dir-name=brave-development --enable-logging=stderr --v=1 --enable-extension-activity-logging --enable-sandbox-logging --enable-dcheck", "start": "node ./tools/start.js --user-data-dir-name=brave-development --enable-logging --v=0 --enable-extension-activity-logging --enable-sandbox-logging --enable-dcheck", "start2": "node ./tools/start.js --user-data-dir-name=brave-development-2 --enable-logging --v=0 --enable-extension-activity-logging --enable-sandbox-logging --enable-dcheck", @@ -224,7 +225,7 @@ "pre-push": { "run": [ "lint", - "unittest" + "pre-push-tests" ] }, "engines": { diff --git a/tools/lib/ignoredPaths.js b/tools/lib/ignoredPaths.js index 2949ca6442a..8abc7ba1fb7 100644 --- a/tools/lib/ignoredPaths.js +++ b/tools/lib/ignoredPaths.js @@ -3,7 +3,7 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ module.exports = [ - 'pre-comit', + 'pre-commit', 'pre-push', 'test/', 'docs/',