Install latest npm in CI

This commit is contained in:
Cheng Zhao 2015-07-02 22:34:05 +08:00
parent 5ccc909f2f
commit 558a612d37
2 changed files with 10 additions and 1 deletions

View file

@ -45,6 +45,9 @@ def main():
os.environ['DISPLAY'] = ':99.0'
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])
# CI's npm is not reliable.
execute(['npm', 'install', 'npm'])
rm_rf(os.path.join(SOURCE_ROOT, 'out'))
rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))
rm_rf(os.path.join(SOURCE_ROOT, 'frameworks'))