Sha256: 59d132eedb3f94290475b4f8d7fe2156a46f6ed8614f5ccef337a9887897a3ed

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

PLATFORMS = {
  :ruby18 => 'ruby-1.8.7-p330',
  :jruby  => 'jruby-1.5.6',
  :ruby19 => 'ruby-1.9.2-p136'
}

BUNDLER_VERSION = '1.0.10'

def ci_env
  (ENV["GEMJAR_ENV"] || :ruby18).to_sym
end

namespace :ci do
  task :rvmrc do
    puts "#{PLATFORMS[ci_env]}@buildr-gemjar"
  end

  task :ensure_bundler_available do
    unless Gem.available?('bundler', BUNDLER_VERSION)
      puts "Installing bundler"
      system "gem install bundler -v '#{BUNDLER_VERSION}'"
    end
  end

  task :setup => [:ensure_bundler_available] do
    system "bundle _#{BUNDLER_VERSION}_ install"
  end
end

task :default => 'ci:setup'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
buildr-gemjar-1.1.0 meta.rakefile
buildr-gemjar-1.0.2 meta.rakefile
buildr-gemjar-1.0.1 meta.rakefile
buildr-gemjar-1.0.0 meta.rakefile