Sha256: f380cb6a9310955abdba29af1a18f5e9151a1e333230fadeddd6bca4cda192ca

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

require "bundler/setup"
require "rake/extensiontask"
require "rake/testtask"

# load the spec, we use it below
spec = Gem::Specification.load("kdtree.gemspec")

#
# gem
#

task :build do
  system "gem build --quiet kdtree.gemspec"
end

task install: :build do
  system "sudo gem install --quiet sc2ai-kdtree-#{spec.version}.gem"
end

task release: :build do
  system "git tag -a #{spec.version} -m 'Tagging #{spec.version}'"
  system "git push --tags"
  system "gem push kdtree-#{spec.version}.gem"
end

#
# rake-compiler
#

Rake::ExtensionTask.new("kdtree", spec)


#
# testing
#

Rake::TestTask.new(:test) do |test|
  test.libs << "test"
end
task test: :compile
task default: :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sc2ai-kdtree-0.4.1 Rakefile