forked from AlchemyCMS/alchemy-solidus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
38 lines (33 loc) · 1.14 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
#!/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/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/rails g #{ENV["SOLIDUS_BRANCH"].match?(/^2.+/) ? "spree" : "solidus"}:install --force --auto-accept --no-seed --no-sample && \
bin/rails g alchemy:solidus:install --auto-accept --force
SETUP
exit($?.exitstatus) unless $?.success?
end
end
require 'github_changelog_generator/task'
require 'alchemy/solidus/version'
GitHubChangelogGenerator::RakeTask.new(:changelog) do |config|
config.user = 'AlchemyCMS'
config.project = 'alchemy-solidus'
config.future_release = "v#{Alchemy::Solidus::VERSION}"
end