summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-29 16:11:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-29 16:12:12 +0200
commit2dd0829a97086b2f9dfab3f9fc86405a93ffb781 (patch)
treef77c9e3a85f92b676d2ad6216dbd9e1fef91da73
parentUpdate README.md (diff)
downloadpyload-2dd0829a97086b2f9dfab3f9fc86405a93ffb781.tar.xz
updated build scripts
-rw-r--r--pavement.py9
-rwxr-xr-xtests/pyflakes.sh2
-rwxr-xr-xtests/sloccount.sh2
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