Explorar o código

Added node pre-build steps to run_tests.py

murgatroid99 %!s(int64=10) %!d(string=hai) anos
pai
achega
ae369de3b8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tools/run_tests/run_tests.py

+ 2 - 1
tools/run_tests/run_tests.py

@@ -191,7 +191,8 @@ class NodeLanguage(object):
                             environ=_FORCE_ENVIRON_FOR_WRAPPERS)]
                             environ=_FORCE_ENVIRON_FOR_WRAPPERS)]
 
 
   def pre_build_steps(self):
   def pre_build_steps(self):
-    return []
+    # Default to 1 week cache expiration
+    return [['npm', 'update', '--cache-min', '604800']]
 
 
   def make_targets(self):
   def make_targets(self):
     return []
     return []