electron/script/cibuild

40 lines
969 B
Text
Raw Normal View History

#!/usr/bin/env python
import os
import subprocess
import sys
from lib.util import rm_rf
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def main():
2014-02-17 09:50:25 +00:00
os.environ['CI'] = '1'
rm_rf(os.path.join(SOURCE_ROOT, 'out'))
2013-12-16 07:15:33 +00:00
rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))
2014-02-02 11:58:25 +00:00
rm_rf(os.path.join(SOURCE_ROOT, 'frameworks'))
rm_rf(os.path.join(SOURCE_ROOT, 'vendor', 'apm', 'node_modules'))
rm_rf(os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor', 'download',
'libchromiumcontent'))
run_script('bootstrap.py')
run_script('cpplint.py')
2014-03-03 11:31:45 +00:00
if sys.platform != 'win32':
run_script('pylint.py')
2013-09-27 02:49:55 +00:00
run_script('coffeelint.py')
run_script('build.py')
run_script('test.py', ['--ci'])
run_script('create-dist.py')
def run_script(script, args=[]):
script = os.path.join(SOURCE_ROOT, 'script', script)
subprocess.check_call([sys.executable, script] + args)
if __name__ == '__main__':
sys.exit(main())