summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorBennett Goble <signal@lindenlab.com>2021-12-11 10:28:35 -0800
committerBennett Goble <signal@lindenlab.com>2021-12-11 10:29:37 -0800
commit0b95b9d008a0878b5d57262e529cef61fb29ea24 (patch)
tree6e12a7949c9a69a5e1ad170220b4e9a82a453142 /build.sh
parentf729cfc33f258781c5fd85a3d8773bf6149d12db (diff)
parent9957c28ddc5e5c129af2db662da7d69f1509af65 (diff)
Merge branch 'master' into SL-15742
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 50eb2916df..1b6dd17a4a 100755
--- a/build.sh
+++ b/build.sh
@@ -298,6 +298,22 @@ python_cmd "$helpers/codeticket.py" addinput "Viewer Channel" "${viewer_channel}
initialize_version # provided by buildscripts build.sh; sets version id
+begin_section "coding policy check"
+# On our TC Windows build hosts, the GitPython library underlying our
+# coding_policy_git.py script fails to run git for reasons we have not tried
+# to diagnose. Clearly git works fine on those hosts, or we would never get
+# this far. Running coding policy checks on one platform *should* suffice...
+if [[ "$arch" == "Darwin" ]]
+then
+ # install the git-hooks dependencies
+ pip install -r "$(native_path "$git_hooks_checkout/requirements.txt")" || \
+ fatal "pip install git-hooks failed"
+ # validate the branch we're about to build
+ python_cmd "$git_hooks_checkout/coding_policy_git.py" --all_files || \
+ fatal "coding policy check failed"
+fi
+end_section "coding policy check"
+
# Now run the build
succeeded=true
last_built_variant=