| 
									
										
										
										
											2013-08-21 11:15:22 +08:00
										 |  |  | #!/usr/bin/env python | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import os | 
					
						
							|  |  |  | import subprocess | 
					
						
							| 
									
										
										
										
											2013-08-21 21:41:34 +08:00
										 |  |  | import sys | 
					
						
							| 
									
										
										
										
											2013-08-21 11:15:22 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-08-21 21:41:34 +08:00
										 |  |  | SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def main(): | 
					
						
							|  |  |  |   run_script('bootstrap.py') | 
					
						
							|  |  |  |   run_script('cpplint.py') | 
					
						
							| 
									
										
										
										
											2013-09-27 10:22:13 +08:00
										 |  |  |   run_script('pylint.py') | 
					
						
							| 
									
										
										
										
											2013-09-27 10:49:55 +08:00
										 |  |  |   run_script('coffeelint.py') | 
					
						
							| 
									
										
										
										
											2013-08-21 21:41:34 +08:00
										 |  |  |   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()) |