How to use the tmt.TmtProject function in tmt

To help you get started, we’ve selected a few tmt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thewca / tnoodle / noderacer / tmtproject.py View on Github external
import tmt
import os
import sys

class Project(tmt.TmtProject):
    def getDependencies(self):
        return [ tmt.TmtProject.projects['jsracer'] ]

    def assertNodeInstallation(self):
        retVal = 1
        try:
            retVal = tmt.runCmd([ 'npm', '-version' ], interactive=True)
        except:
            pass
        if retVal != 0:
            print()
            print("It appears you do not have npm (node's package manager) installed.")
            print("Install node (http://nodejs.org/, it should provide npm) and try again.")
            sys.exit(1)

    def compile(self):
github thewca / tnoodle / all / tmtproject.py View on Github external
def getDependencies(self):
		return [ tmt.TmtProject.projects['timer'],
			 	 tmt.TmtProject.projects['noderacer'],
				 tmt.TmtProject.projects['jracer'],
				 tmt.TmtProject.projects['quercus'],
                 ]
github thewca / tnoodle / jsracer / tmtproject.py View on Github external
import tmt

class Project(tmt.TmtProject):
    def getDependencies(self):
        return [ tmt.TmtProject.projects['twisty.js'] ]

    def getClasspathEntities(self, *args, **keyargs):
        # This is here just to make jracer's getClasspathEntities happy
        return set()

    def compile(self):
        pass

    def clean(self):
        pass

    def check(self):
        pass
github thewca / tnoodle / tnoodle-android / tmtproject.py View on Github external
import tmt
import os
import os.path

class Project(tmt.TmtProject):
    def configure(self):
        self.gradlew = "(cd %s; ./gradlew %%s)" % self.name

    def getDependencies(self):
        return [ tmt.TmtProject.projects['scrambles'] ]

    def runGradleTask(self, task):
        retVal = os.system(self.gradlew % task)
        assert retVal == 0

    def compile(self):
        self.runGradleTask("assemble")

    def clean(self):
        self.runGradleTask("clean")
github thewca / tnoodle / all / tmtproject.py View on Github external
import tmt

class Project(tmt.TmtProject):
	def compile(self):
		pass
	
	def getDependencies(self):
		return [ tmt.TmtProject.projects['timer'],
			 	 tmt.TmtProject.projects['noderacer'],
				 tmt.TmtProject.projects['jracer'],
				 tmt.TmtProject.projects['quercus'],
                 ]

	def check(self):
		return
	
	def clean(self):
		for dep in self.getDependencies():
			dep.clean()
github thewca / tnoodle / twisty.js / tmtproject.py View on Github external
import tmt

class Project(tmt.TmtProject):
        def getDependencies(self):
                return []

        def compile(self):
                pass

        def clean(self):
                pass

        def check(self):
                pass

Project(tmt.projectName(), description="Lucas Garron's Javascript puzzle simulator.")