Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 804 Bytes
# dependencies:
# fabric (apt-get install fabric)
# node-jslint (
# expresso (or replace with whatever node.js test tool you're using)
from fabric.api import local
import os, os.path
def test():
local('expresso -I lib test/*', capture=False)
def jslint():
ignore = [ "/lib-cov/" ]
for root, subFolders, files in os.walk("."):
for file in files:
if file.endswith(".js"):
filename = os.path.join(root,file)
processFile = True
for i in ignore:
if filename.find(i) != -1:
processFile = False
if processFile:
print filename
local('jslint %s' % filename, capture=False)
Jump to Line
Something went wrong with that request. Please try again.