Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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):
def getDependencies(self):
return [ tmt.TmtProject.projects['timer'],
tmt.TmtProject.projects['noderacer'],
tmt.TmtProject.projects['jracer'],
tmt.TmtProject.projects['quercus'],
]
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
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")
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()
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.")