Example #1
0
def main():

	args = parse_args()

	commands = SERVER_COMMANDS

	procs = []

	if args.browser:
		# Show the browser tests in the default browser
		browserProc = Process(target=runbrowser)
		procs += [browserProc]
		browserProc.start()
	else:
		commands += [PHANTOM_TEST_COMMAND]

	def killProcs():
		for proc in procs:
			proc.terminate()

	runtogether.runtogether(commands, kill_timeout=1, shutdown_callback=killProcs)
Example #2
0
File: dev.py Project: nh2/wordwang
#!/usr/bin/env python2

commands = [
    # 'sh -c "cd server && mkdir -p log/ && dist/build/wordwang/wordwang ../client/"',
    'sh -c "cd server && mkdir -p log/ && dist/build/wordwang/wordwang"',
    'sh -c "cd client && python2 -m SimpleHTTPServer"',
    'stylus --watch client/css -o client/gen',
    # 'vogue client/',
    # 'coffee --compile --watch .',  # We try to avoid using this if possible.
]

if __name__ == '__main__':
    import runtogether
    runtogether.runtogether(commands)