Sha256: e0f193a4a9ac23420acb7ea1c950aef967751929d2f62f2821511854366c02c8

Contents?: true

Size: 735 Bytes

Versions: 21

Compression:

Stored size: 735 Bytes

Contents

require "bundler/gem_tasks"

task default: :spec

namespace :kokoro do
  task :load_env_vars do
    service_account = "#{ENV['KOKORO_GFILE_DIR']}/service-account.json"
    ENV["GOOGLE_APPLICATION_CREDENTIALS"] = service_account
    filename = "#{ENV['KOKORO_GFILE_DIR']}/env_vars.json"
    env_vars = JSON.parse File.read(filename)
    env_vars.each { |k, v| ENV[k] = v }
  end

  task :presubmit do
    Rake::Task["spec"].invoke
  end

  task :continuous do
    Rake::Task["spec"].invoke
  end

  task :nightly do
    Rake::Task["spec"].invoke
  end
end

def header str, token = "#"
  line_length = str.length + 8
  puts ""
  puts token * line_length
  puts "#{token * 3} #{str} #{token * 3}"
  puts token * line_length
  puts ""
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
google-api-client-0.34.0 Rakefile
google-api-client-0.33.2 Rakefile
google-api-client-0.33.1 Rakefile
google-api-client-0.33.0 Rakefile
google-api-client-0.32.1 Rakefile
google-api-client-0.32.0 Rakefile
google-api-client-0.31.0 Rakefile
google-api-client-0.30.10 Rakefile
google-api-client-0.30.9 Rakefile
google-api-client-0.30.8 Rakefile
google-api-client-0.30.7 Rakefile
google-api-client-0.30.6 Rakefile
google-api-client-0.30.5 Rakefile
google-api-client-0.30.4 Rakefile
google-api-client-0.30.3 Rakefile
google-api-client-0.30.2 Rakefile
google-api-client-0.30.1 Rakefile
google-api-client-0.30.0 Rakefile
google-api-client-0.29.2 Rakefile
google-api-client-0.29.1 Rakefile