-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
40 lines (35 loc) · 1.09 KB
/
Rakefile
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
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env rake
begin
require "bundler/setup"
rescue LoadError
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
Bundler::GemHelper.install_tasks
require "rspec/core"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task default: [:test_setup, :spec]
require "active_support"
require "active_support/core_ext/string"
desc "Setup test app"
task :test_setup do
Dir.chdir("spec/dummy") do
system <<-SETUP.strip_heredoc
export RAILS_ENV=test && \
bin/rake db:environment:set db:drop && \
bin/rake gutentag:install:migrations && \
bin/rails g gutentag:migration_versions && \
bin/rake railties:install:migrations && \
bin/rails g alchemy:devise:install --force && \
bin/rake db:migrate
SETUP
exit($?.exitstatus) unless $?.success?
end
end
require "github_changelog_generator/task"
require "alchemy/json_api/version"
GitHubChangelogGenerator::RakeTask.new(:changelog) do |config|
config.user = "AlchemyCMS"
config.project = "alchemy-json_api"
config.future_release = "v#{Alchemy::JsonApi::VERSION}"
end