clean-npm-cache: Fix path to yarn in Travis CI.

Apparently, this was checking the wrong path in Travis CI, and thus
never actually running (meaning we'd accumulate every `node_modules`
directory ever in the Travis caches, which in turn resulted in very
slow builds).
This commit is contained in:
Tim Abbott
2017-11-23 11:27:18 -08:00
parent 15501c8b07
commit 15cf87f424

View File

@@ -19,7 +19,7 @@ NODE_MODULES_CACHE_PATH = "/srv/zulip-npm-cache"
if ENV == "travis":
NODE_MODULES_CACHE_PATH = os.path.join(os.environ["HOME"], "zulip-npm-cache")
try:
subprocess.check_output(["/srv/zulip-yarn/bin/yarn", '--version'])
subprocess.check_output(["/home/travis/zulip-yarn/bin/yarn", '--version'])
except OSError:
print('yarn not found. Most probably we are running static-analysis and '
'hence yarn is not installed. Exiting without cleaning npm cache.')