Ejemplo n.º 1
0
def generateDocs(buildenv):

    # Generate the content model docs (configure your webserver to map
    # /docs/current/model to chandler/docs/model)
    args = [
        os.path.join('distrib', 'docgen', 'genmodeldocs.py'), '-u',
        '/docs/current/model'
    ]
    hardhatlib.executeScript(buildenv, args)

    # Generate the epydocs
    targetDir = os.path.join("docs", "api")
    hardhatlib.mkdirs(targetDir)
    if buildenv['os'] != 'win' or sys.platform == 'cygwin':
        hardhatlib.epydoc(buildenv, info['name'], 'Generating API docs',
                          '-o %s -v -n Chandler' % targetDir,
                          '--inheritance listed', '--no-private',
                          'application', 'parcels/osaf/sharing',
                          'repository/item', 'repository/persistence',
                          'repository/util', 'repository/query',
                          'repository/schema', 'crypto')
Ejemplo n.º 2
0
def generateDocs(buildenv):

    # Generate the content model docs (configure your webserver to map
    # /docs/current/model to chandler/docs/model)
    args = [os.path.join('distrib', 'docgen', 'genmodeldocs.py'), '-u',
     '/docs/current/model']
    hardhatlib.executeScript(buildenv, args)

    # Generate the epydocs
    targetDir = os.path.join("docs","api")
    hardhatlib.mkdirs(targetDir)
    if buildenv['os'] != 'win' or sys.platform == 'cygwin':
        hardhatlib.epydoc(buildenv, info['name'], 'Generating API docs',
                          '-o %s -v -n Chandler' % targetDir,
                          '--inheritance listed',
                          '--no-private',
                          'application',
                          'parcels/osaf/sharing',
                          'repository/item',
                          'repository/persistence',
                          'repository/util',
                          'repository/query',
                          'repository/schema',
                          'crypto')
Ejemplo n.º 3
0
            opts.extend(loo)
            args.extend(loa)
            
        #if opt == "-u" or opt == "--update":
        #    hardhatlib.svnCheckout(buildenv, projectRoot)

        if opt == "-v" or opt == "--verbose":
            buildenv['verbosity'] = buildenv['verbosity'] + 1

        if opt == "-x" or opt == "--run":
            hardhatlib.run(buildenv, curmodulepath)

    if len(args) > 0:
        if not args_used:
            # Only do this if no flag above used the leftover arguments
            hardhatlib.executeScript(buildenv, args)

except hardhatlib.HardHatExternalCommandError:
    print 
    print "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
    print " A program that HardHat spawned exited with a non-zero exit code."
    print "          Please view the file 'hardhat.log' for details."
    print "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
    sys.exit(1)

except hardhatlib.HardHatUnitTestError:
    print 
    print "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
    print "                The following unit test(s) failed:"
    print
    for testFile in buildenv['failed_tests']: