restore to previous
This commit is contained in:
parent
66e63897a3
commit
6e8606c01e
10
Rakefile
10
Rakefile
|
@ -1,18 +1,14 @@
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
require 'travis'
|
require 'travis'
|
||||||
require 'micro_migrations'
|
|
||||||
require 'travis/migrations'
|
|
||||||
require 'travis/engine'
|
require 'travis/engine'
|
||||||
|
|
||||||
ActiveRecord::Base.schema_format = :sql
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
ENV['SCHEMA'] = File.expand_path('../db/migrate/structure.sql', $:.detect { |p| p.include?('travis-migrations') })
|
ENV['SCHEMA'] = File.expand_path('../db/schema.rb', $:.detect { |p| p.include?('travis-core') })
|
||||||
|
require 'micro_migrations'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
# we can't load micro migrations on production
|
# we can't load micro migrations on production
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'rspec/core/rake_task'
|
require 'rspec/core/rake_task'
|
||||||
RSpec::Core::RakeTask.new
|
RSpec::Core::RakeTask.new
|
||||||
|
@ -21,8 +17,6 @@ rescue LoadError
|
||||||
warn "could not load rspec"
|
warn "could not load rspec"
|
||||||
end
|
end
|
||||||
|
|
||||||
Rake::Task["db:structure:dump"].clear
|
|
||||||
|
|
||||||
desc "generate gemspec"
|
desc "generate gemspec"
|
||||||
task 'travis-api.gemspec' do
|
task 'travis-api.gemspec' do
|
||||||
content = File.read 'travis-api.gemspec'
|
content = File.read 'travis-api.gemspec'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user