From: Cheng Zhao Date: Wed, 21 Aug 2013 13:41:34 +0000 (+0800) Subject: Make sure cibuild calls all necessary scripts. X-Git-Tag: v0.4.1~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c87956ef4ffb096b5c3f8197001ed55884eff837;p=electron.git Make sure cibuild calls all necessary scripts. --- diff --git a/script/cibuild b/script/cibuild index 63946159..8e42be6c 100755 --- a/script/cibuild +++ b/script/cibuild @@ -2,7 +2,24 @@ import os import subprocess +import sys -test = os.path.join(os.path.dirname(__file__), 'test.py') -subprocess.check_call([test, '--ci']) +SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + + +def main(): + run_script('bootstrap.py') + run_script('cpplint.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())