]> khamidou — GitHub mirrors - electron.git/commitdiff
Clean before and after cibuild
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 05:52:13 +0000 (13:52 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 05:52:13 +0000 (13:52 +0800)
Our CI machine is out of disk space

script/cibuild
script/clean.py

index e5a5366b7aa28e0f6c0b41f100f671512614e429..8f5185da71429ab75f31124492f2d4e05e23b838 100755 (executable)
@@ -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'])
index f27ee9cbea3dafd12601bbfa991d628cb699f918..cd72230a3715a94a96678a5ae590c3a30a4ed315 100755 (executable)
@@ -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__':