Beispiel #1
0
def compileSuiteCoffee(path, fullpath):
	#document_root = contrib.get_document_root(path)
	#enumroot = contrib.get_full_path(document_root, path)
	tests = contrib.enum_files_in_folders(fullpath, lambda file_: not file_.endswith(coffeescript.ext))
	for test in tests:
		path = coffeescript.compile(None, None, os.path.join(fullpath, test))
		log.info(path)
Beispiel #2
0
def saveToolsAllScripts(url, document_root, virtual_root, ctx):
	tools_dirs = contrib.get_context_tools_folders(ctx)
	for tools_dir in tools_dirs:
		log.info('save tools folder: %s' % tools_dir)
		virtual_path = os.path.join(virtual_root, tools_dir)
		tools_dir_fullpath = contrib.get_full_path(document_root, virtual_path)
		files = contrib.enum_files_in_folders(tools_dir_fullpath)
		uploadFolderToRemote(files, virtual_path, document_root, ctx, url, 'tools script')
Beispiel #3
0
def compileSuiteCoffee(path, suite_path):
	contrib.cleandir(suite_path, '.*.js')
	tests = contrib.enum_files_in_folders(
			suite_path,
			lambda file_: not file_.endswith(settings.COFFEE_FILE_EXT)
	)
	for test in tests:
		fullpath = os.path.join(suite_path, test)
		path = coffeescript.compile2js(None, None, fullpath)
		log.info(path)