From 2dd0829a97086b2f9dfab3f9fc86405a93ffb781 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 29 Jun 2013 16:11:46 +0200 Subject: updated build scripts --- pavement.py | 9 ++++++--- tests/pyflakes.sh | 2 +- 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 -- cgit v1.2.3