Skip to content
Snippets Groups Projects
Commit ab185263 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

SL-15500: Install git-hooks (and requirements) and run policy check

on the entire current (branch of the) viewer repo before starting any build.
parent f9a6e31c
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ build_docs = true ...@@ -14,7 +14,7 @@ build_docs = true
build_Linux_Doxygen = true build_Linux_Doxygen = true
# Need viewer-build-variables as well as other shared repositories # Need viewer-build-variables as well as other shared repositories
buildscripts_shared_more_NAMEs="build_secrets build_variables" buildscripts_shared_more_NAMEs="build_secrets build_variables git_hooks"
################################################################ ################################################################
#### Examples of how to set the viewer_channel #### #### Examples of how to set the viewer_channel ####
......
...@@ -280,6 +280,12 @@ python_cmd "$helpers/codeticket.py" addinput "Viewer Channel" "${viewer_channel} ...@@ -280,6 +280,12 @@ python_cmd "$helpers/codeticket.py" addinput "Viewer Channel" "${viewer_channel}
initialize_version # provided by buildscripts build.sh; sets version id initialize_version # provided by buildscripts build.sh; sets version id
# install the git-hooks dependencies
pip_install -r "$git_hooks_checkout/requirements.txt"
# validate the branch we're about to build
python_cmd "$git_hooks_checkout/coding_policy_git.py" --all_files || \
fatal "coding policy check failed"
# Now run the build # Now run the build
succeeded=true succeeded=true
last_built_variant= last_built_variant=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment