Clean before and after cibuild
Our CI machine is out of disk space
This commit is contained in:
parent
e4530e6e32
commit
6b7d3a070a
2 changed files with 7 additions and 2 deletions
|
@ -48,7 +48,7 @@ def main():
|
||||||
if PLATFORM == 'linux':
|
if PLATFORM == 'linux':
|
||||||
os.environ['DISPLAY'] = ':99.0'
|
os.environ['DISPLAY'] = ':99.0'
|
||||||
|
|
||||||
rm_rf(os.path.join(SOURCE_ROOT, 'out'))
|
execute(['clean.py'])
|
||||||
|
|
||||||
# CI's npm is not reliable.
|
# CI's npm is not reliable.
|
||||||
npm = 'npm.cmd' if PLATFORM == 'win32' else 'npm'
|
npm = 'npm.cmd' if PLATFORM == 'win32' else 'npm'
|
||||||
|
@ -81,4 +81,7 @@ def run_script(script, args=[]):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
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():
|
def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
rm_rf('node_modules')
|
rm_rf('node_modules')
|
||||||
|
rm_rf('dist')
|
||||||
rm_rf('out')
|
rm_rf('out')
|
||||||
rm_rf('spec/node_modules')
|
rm_rf('spec/node_modules')
|
||||||
|
rm_rf('vendor/brightray/vendor/download/libchromiumcontent')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue