build, project = BuildProject( name = 'Make-O-Matic', version = '0.5.0', versionName = 'French Fries', url = 'git://github.com/KDAB/Make-O-Matic.git' ) # add a preprocessor that generates the Doxygen input file prep = Preprocessor( project, inputFilename = PathResolver( project.getSourceDir, 'doxygen.cfg.in' ), outputFilename = PathResolver( project.getTempDir, 'doxygen.cfg' ) ) project.addPlugin( prep ) footer = Preprocessor( project, inputFilename = PathResolver( project.getSourceDir, 'doxygen-footer.html.in' ), outputFilename = PathResolver( project.getTempDir, 'doxygen-footer.html' ) ) project.addPlugin( footer ) # add a doxygen generator dox = DoxygenGenerator() dox.setOptional( True ) dox.setDoxygenFile( prep.getOutputFilename() ) project.addPlugin( dox ) # set up configurations: # python3 = Configuration( 'Python 3', project ) python2 = PythonConfiguration( 'Python 2', executable = 'python', parent = project ) python2.addPlugin( PyUnitTester( testprogram = PathResolver( project.getSourceDir, os.path.join( 'mom', 'tests', 'testsuite_selftest.py' ) ) ) ) pylint = PyLintChecker( pyLintTool = 'pylint-2.6', pyLintRcFile = PathResolver( project.getSourceDir, 'pylintrc' ), htmlOutputPath = PathResolver( project.getDocsDir, 'pylint.html' ), modules = [ 'core', 'buildcontrol', 'tools', 'tests' ], minimumSuccessRate = 0.75 ) pylint.setOptional( True ) python2.addPlugin( pylint )