diff options
-rw-r--r-- | pavement.py | 9 | ||||
-rwxr-xr-x | tests/pyflakes.sh | 2 | ||||
-rwxr-xr-x | tests/sloccount.sh | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/pavement.py b/pavement.py index 7c34a5bc8..143abe517 100644 --- a/pavement.py +++ b/pavement.py @@ -18,6 +18,7 @@ def new_fnmatch(self, pattern): path.fnmatch = new_fnmatch +import os import sys import re from subprocess import call, Popen @@ -95,9 +96,11 @@ def apitypes(options): @task def webapp(): """ Builds the pyload web app. Nodejs and npm must be installed """ - # TODO - # npm install - # bower install + + os.chdir(PROJECT_DIR / "pyload" / "web") + call(["npm", "install"]) + call(["bower", "install"]) + call(["grunt"]) @task diff --git a/tests/pyflakes.sh b/tests/pyflakes.sh index df2805f1f..d569b05f6 100755 --- a/tests/pyflakes.sh +++ b/tests/pyflakes.sh @@ -1,5 +1,5 @@ #!/bin/bash find -name '*.py' |egrep -v '^.(/tests/|/pyload/lib)'|xargs pyflakes > pyflakes.log || : # Filter warnings and strip ./ from path -cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' | grep -i -E -v "'_'|pypath|webinterface|pyreq|hookmanager" > pyflakes.txt +cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' | grep -i -E -v "'_'|pypath|webinterface|pyreq|addonmanager" > pyflakes.txt sed -i 's/^.\///g' pyflakes.txt diff --git a/tests/sloccount.sh b/tests/sloccount.sh index 0dab4164e..beca391bd 100755 --- a/tests/sloccount.sh +++ b/tests/sloccount.sh @@ -1,2 +1,2 @@ #!/bin/bash -sloccount --duplicates --wide --details module > sloccount.sc +sloccount --duplicates --wide --details pyload > sloccount.sc |