mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
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:
@@ -19,7 +19,7 @@ NODE_MODULES_CACHE_PATH = "/srv/zulip-npm-cache"
|
|||||||
if ENV == "travis":
|
if ENV == "travis":
|
||||||
NODE_MODULES_CACHE_PATH = os.path.join(os.environ["HOME"], "zulip-npm-cache")
|
NODE_MODULES_CACHE_PATH = os.path.join(os.environ["HOME"], "zulip-npm-cache")
|
||||||
try:
|
try:
|
||||||
subprocess.check_output(["/srv/zulip-yarn/bin/yarn", '--version'])
|
subprocess.check_output(["/home/travis/zulip-yarn/bin/yarn", '--version'])
|
||||||
except OSError:
|
except OSError:
|
||||||
print('yarn not found. Most probably we are running static-analysis and '
|
print('yarn not found. Most probably we are running static-analysis and '
|
||||||
'hence yarn is not installed. Exiting without cleaning npm cache.')
|
'hence yarn is not installed. Exiting without cleaning npm cache.')
|
||||||
|
|||||||
Reference in New Issue
Block a user