File: Rakefile

package info (click to toggle)
ruby-ice-cube 0.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 584 kB
  • ctags: 456
  • sloc: ruby: 5,917; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'rspec/core/rake_task'
require File.dirname(__FILE__) + '/lib/ice_cube/version'

task :build => :test do
  system "gem build ice_cube.gemspec"
end

task :release => :build do
  # tag and push
  system "git tag v#{IceCube::VERSION}"
  system "git push origin --tags"
  # push the gem
  system "gem push ice_cube-#{IceCube::VERSION}.gem"
end

RSpec::Core::RakeTask.new(:test) do |t|
  t.pattern = 'spec/**/*_spec.rb'
  fail_on_error = true # be explicit
end