diff options
author | 2013-06-29 17:24:04 +0200 | |
---|---|---|
committer | 2013-06-29 17:24:04 +0200 | |
commit | 8181459f7d263bec297216677cbec2073bf3c2a8 (patch) | |
tree | 13c0435873f547fd0cfec370a6af21862a0335dd /pavement.py | |
parent | npm dependency update (diff) | |
download | pyload-8181459f7d263bec297216677cbec2073bf3c2a8.tar.xz |
check returncode in build script
Diffstat (limited to 'pavement.py')
-rw-r--r-- | pavement.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pavement.py b/pavement.py index 143abe517..17cd4594c 100644 --- a/pavement.py +++ b/pavement.py @@ -98,9 +98,17 @@ def webapp(): """ Builds the pyload web app. Nodejs and npm must be installed """ os.chdir(PROJECT_DIR / "pyload" / "web") - call(["npm", "install"]) - call(["bower", "install"]) - call(["grunt"]) + + # Preserve exit codes + ret = call(["npm", "install", "--no-color"]) + if ret: + exit(ret) + ret = call(["bower", "install", "--no-color"]) + if ret: + exit(ret) + ret = call(["grunt", "--no-color"]) + if ret: + exit(ret) @task |