mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* Remove libwebp from libtiff deps and build to avoid circular dependency. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add sphinx dep needed for documentation generation. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * libtiff_without_libwebp: Package File Update Run on linux/386 container. * libtiff_without_libwebp: Package File Update Run on linux/amd64 container. * libtiff_without_libwebp: Package File Update Run on linux/arm/v7 container. * Adjust package testing infrastructure. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add pnpm package (#14339) * Update Rubocop, handle gem outdated sources edge condition (#14336) * Add unbuilt ruby_rubocop to updater-ruby_rubocop-1.84.0-ruby4.0 * Adjust to avoid circular dependency. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add fallback for outdated gem cache. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Document reason for new require_gem rescue block. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add package_utils fallback if gitlab response is not json. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Only do a gem check for the gem being installed. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> * Rename rest of ruby files in tests/ Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust automatically updatable package workflows. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix package test invocation. * Fix test extensions. * Update package listing command in Updater.yml * Fix syntax for package retrieval in Updater.yml * Update Updater.yml * Fix run command for getting updatable packages * Update SHELLCHECK_OPTS * Adjust automatically updatable packages check in version.rb * lint --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: Ed Reel <edreel@gmail.com> Co-authored-by: chromebrew-actions[bot] <220035932+chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
35 lines
1.2 KiB
Ruby
Executable File
35 lines
1.2 KiB
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require_relative '../lib/color'
|
|
require_relative '../lib/const'
|
|
require_relative '../lib/package'
|
|
|
|
failed = nil
|
|
property_line = `grep -n "case property" ../commands/help.rb | cut -d: -f1`.to_i
|
|
help_lines = `wc -l ../commands/help.rb`.to_i
|
|
tail_lines = help_lines - property_line
|
|
help_commands = `head -#{property_line} ../commands/help.rb | grep " when '" | cut -d"'" -f2`.split("\n")
|
|
help_properties = `tail -#{tail_lines} ../commands/help.rb | grep " when '" | cut -d"'" -f2`.split("\n")
|
|
package_properties = Package.available_boolean_properties
|
|
if (CREW_COMMANDS.length - help_commands.length).positive?
|
|
puts 'Help is missing for the crew commands in commands/help.rb below:'.yellow
|
|
missing_commands = CREW_COMMANDS - help_commands
|
|
missing_commands.each do |command|
|
|
puts command.yellow
|
|
end
|
|
failed = true
|
|
end
|
|
if (package_properties.length - help_properties.length).positive?
|
|
puts 'Help is missing for the properties in commands/help.rb below:'.yellow
|
|
missing_properties = package_properties - help_properties
|
|
missing_properties.each do |property|
|
|
puts property.yellow
|
|
end
|
|
failed = true
|
|
end
|
|
if failed
|
|
puts 'Help test failed.'.lightred
|
|
else
|
|
puts 'Help test passed.'.lightgreen
|
|
end
|