[tor-commits] [bridgedb] 63/66: Exit build if the frontend build script fails

gitolite role git at cupani.torproject.org
Wed Jul 27 18:33:08 UTC 2022


This is an automated email from the git hooks/post-receive script.

meskio pushed a commit to branch main
in repository bridgedb.

commit 04aef7aaeb41f5d94c4059b5af305f02e9f6b083
Author: kez <kez at torproject.org>
AuthorDate: Wed Jul 20 11:32:45 2022 -0700

    Exit build if the frontend build script fails
---
 setup.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/setup.py b/setup.py
index 4765661..90868a8 100644
--- a/setup.py
+++ b/setup.py
@@ -172,6 +172,10 @@ def build_lektor_frontend() -> None:
         ['/usr/bin/env', 'bash', 'frontend/build.sh', 'prod'],
     )
     frontend_build.wait()
+    
+    if frontend_build.returncode != 0:
+        raise Exception(f'Frontend build script failed with non-zero exit code: {frontend_build.returncode}')
+
     template_path = os.path.join(
         'bridgedb',
         'distributors',

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list