diff options
author | kennyballou <kballou@onyx.boisestate.edu> | 2013-01-10 11:00:40 -0700 |
---|---|---|
committer | kballou <kballou@onyx.boisestate.edu> | 2013-01-10 11:00:40 -0700 |
commit | 03550b0e9d8dbbe052557f909895f96fdda0c092 (patch) | |
tree | daa64475dd957062e17ff644792b66170c4e3260 /build.py | |
parent | cf72de5d1353040a02804b37aabab744a5ec5c43 (diff) | |
download | xnt-03550b0e9d8dbbe052557f909895f96fdda0c092.tar.gz xnt-03550b0e9d8dbbe052557f909895f96fdda0c092.tar.xz |
Return error codes from targets
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -18,23 +18,25 @@ def clean(): @target def build(): - setup(["build"]) + return setup(["build"]) @target def test(): """Tests package""" print("Python Tests:") - setup(["test"]) + ec1 = setup(["test"]) clean() print("Python2 Tests:") - call(["python2", "setup.py", "test"]) + ec2 = call(["python2", "setup.py", "test"]) clean() + return ec1 | ec2 @target def install(): """Install Xnt""" - setup(["install", "--user"]) + ec = setup(["install", "--user"]) clean() + return ec @target def doc(): @@ -42,4 +44,4 @@ def doc(): Create package documentation """ clean() - setup(["build_sphinx"]) + return setup(["build_sphinx"]) |