Rakefile 730 Bytes
Newer Older
Sylvester Keil committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'rake'

require 'jekyll/scholar/version'

require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)

task :default => [:features]

Sylvester Keil committed
18 19 20 21 22 23 24
begin
  require 'coveralls/rake/task'
  Coveralls::RakeTask.new
  task :test_with_coveralls => [:features, 'coveralls:push']
rescue LoadError => e
  # ignore
end
Sylvester Keil committed
25

Sylvester Keil committed
26 27
task :release do |t|
  system "gem build jekyll-scholar.gemspec"
Sylvester Keil committed
28
  system "git tag v#{Jekyll::Scholar::VERSION}"
Sylvester Keil committed
29 30 31
  system "git push --tags"
  system "gem push jekyll-scholar-#{Jekyll::Scholar::VERSION}.gem"
end