소스 검색

Added node pre-build steps to run_tests.py

murgatroid99 10 년 전
부모
커밋
ae369de3b8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)]
 
   def pre_build_steps(self):
-    return []
+    # Default to 1 week cache expiration
+    return [['npm', 'update', '--cache-min', '604800']]
 
   def make_targets(self):
     return []