Our CI machine is out of disk space
if PLATFORM == 'linux':
os.environ['DISPLAY'] = ':99.0'
- rm_rf(os.path.join(SOURCE_ROOT, 'out'))
+ execute(['clean.py'])
# CI's npm is not reliable.
npm = 'npm.cmd' if PLATFORM == 'win32' else 'npm'
if __name__ == '__main__':
- sys.exit(main())
+ try:
+ sys.exit(main())
+ except subprocess.CalledProcessError:
+ execute(['clean.py'])
def main():
os.chdir(SOURCE_ROOT)
rm_rf('node_modules')
+ rm_rf('dist')
rm_rf('out')
rm_rf('spec/node_modules')
+ rm_rf('vendor/brightray/vendor/download/libchromiumcontent')
if __name__ == '__main__':