-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (22 loc) · 718 Bytes
/
Copy pathRakefile
File metadata and controls
28 lines (22 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'bundler/gem_helper'
require 'rspec/core/rake_task'
# http://qiita.com/kyanny/items/2de40ca0b5127a0f5c2a
# Rake::Task[:release].clear
# http://qiita.com/kyanny/items/d3111ea76b2941d71ef5
t = Bundler::GemHelper.new
desc "Create tag #{t.send(:version_tag)}"
task :tag do
t.send(:tag_version) { t.send(:git_push) } unless t.send(:already_tagged?)
end
Dir['lib/tasks/*.rake'].each { |task| load(task) }
if ENV['APP_ENV'] && %w(development test).include?(ENV['APP_ENV'])
require 'dotenv'
Dotenv.load
end
desc 'Run all specs in spec directory'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ['-cfd --backtrace']
end
task default: :spec