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