forked from coopernurse/node-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fabfile.py
27 lines (23 loc) · 804 Bytes
/
fabfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
# dependencies:
# fabric (apt-get install fabric)
# node-jslint (http://github.com/reid/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)