Clean before and after cibuild
Our CI machine is out of disk space
This commit is contained in:
Родитель
e4530e6e32
Коммит
6b7d3a070a
|
@ -48,7 +48,7 @@ def main():
|
|||
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'
|
||||
|
@ -81,4 +81,7 @@ def run_script(script, args=[]):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
try:
|
||||
sys.exit(main())
|
||||
except subprocess.CalledProcessError:
|
||||
execute(['clean.py'])
|
||||
|
|
|
@ -12,8 +12,10 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
|||
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__':
|
||||
|
|
Загрузка…
Ссылка в новой задаче