Skip to content

Commit

Permalink
ci/cd: add build_options
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidSassan committed May 31, 2024
1 parent f0380d2 commit f283712
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/shared/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ for dir in /repos/monitoring-plugins/check-plugins/*; do
check="$(basename $dir)"
if [ "$check" != "example" ]; then
echo -e "\ncompiling $check..."
pyinstaller --clean --distpath /tmp/dist/check-plugins --workpath /tmp/build/check-plugins --specpath /tmp/spec/check-plugins --noconfirm --noupx --onedir "$dir/${check}"
pyinstaller_extra_cmdline=''
if [ -f "$dir/.build_options" ]; then
echo "Found .build_options, sourcing them"
. "$dir/.build_options"
fi
pyinstaller --clean --distpath /tmp/dist/check-plugins --workpath /tmp/build/check-plugins --specpath /tmp/spec/check-plugins --noconfirm --noupx --onedir $pyinstaller_extra_cmdline "$dir/${check}"
fi
done
\cp -a --no-clobber /tmp/dist/check-plugins/*/* /tmp/dist/summary/check-plugins
Expand Down
1 change: 1 addition & 0 deletions check-plugins/openstack-nova-list/.build_options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller_extra_cmdline='--collect-data os_service_types --copy-metadata keystoneauth1 --copy-metadata os-service-types --copy-metadata python-keystoneclient --copy-metadata python-novaclient'
1 change: 1 addition & 0 deletions check-plugins/openstack-swift-stat/.build_options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller_extra_cmdline='--collect-data os_service_types --copy-metadata keystoneauth1 --copy-metadata os-service-types --copy-metadata python-keystoneclient'

0 comments on commit f283712

Please sign in to comment.