Sha256: 06ca414c675dc306069983943500350b26a6ec9134b17b54bfbe2726f965d9de
Contents?: true
Size: 938 Bytes
Versions: 2
Compression:
Stored size: 938 Bytes
Contents
# -*- ruby -*- require 'bundler/gem_tasks' require 'rake/testtask' Rake::TestTask.new do |t| t.test_files = FileList['test/**/test_*.rb'] end def apply_patches clean = system(<<~EOD) bash -c 'if [ -z "$(git status --porcelain)" ]; then exit 0; else exit 1; fi' EOD raise "Working directory is not clean" unless clean patches = Dir["patches/*.patch"] patches.each do |patch| puts "PATCH #{patch}" res = system("git apply #{patch}") if res `git add -u` `git commit -m 'Applying #{patch} for v#{Google::Ads::GoogleAds::CLIENT_LIB_VERSION} release'` else puts "FAIL #{patch}: may not be a big deal because already applied or no longer needed" end end end task :validate_protos do res = system("./scripts/validate_protos.rb") if !res raise "Couldn't load all protos" end end task :apply_patches do |t| apply_patches end task :build => [:apply_patches, :validate_protos]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
google-ads-googleads-2.0.0 | Rakefile |
google-ads-googleads-1.1.1 | Rakefile |