Sha256: 9081a882c0d9b805d33b133f4955be6bc7fca10534504c599c888cce7ee36a08

Contents?: true

Size: 869 Bytes

Versions: 11

Compression:

Stored size: 869 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/clean"

require "rake/extensiontask"
Rake::ExtensionTask.new("polyphony_ext") do |ext|
  ext.ext_dir = "ext/polyphony"
end

task :recompile => [:clean, :compile]
task :default => [:compile, :test]

task :test do
  exec 'ruby test/run.rb'
end

task :stress_test do
  exec 'ruby test/stress.rb'
end

task :docs do
  exec 'RUBYOPT=-W0 jekyll serve -s docs -H ec2-18-156-117-172.eu-central-1.compute.amazonaws.com'
end

CLEAN.include "**/*.o", "**/*.so", "**/*.so.*", "**/*.a", "**/*.bundle", "**/*.jar", "pkg", "tmp"

task :release do
  require_relative './lib/polyphony/version'
  version = Polyphony::VERSION
  
  puts 'Building polyphony...'
  `gem build polyphony.gemspec`

  puts "Pushing polyphony #{version}..."
  `gem push polyphony-#{version}.gem`

  puts "Cleaning up..."
  `rm *.gem`
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
polyphony-0.99 Rakefile
polyphony-0.98 Rakefile
polyphony-0.97 Rakefile
polyphony-0.92 Rakefile
polyphony-0.91 Rakefile
polyphony-0.90 Rakefile
polyphony-0.89 Rakefile
polyphony-0.87 Rakefile
polyphony-0.86 Rakefile
polyphony-0.85 Rakefile
polyphony-0.84.1 Rakefile