add travis before script
This commit is contained in:
parent
60fb24d284
commit
19e77e5ff6
|
@ -10,6 +10,9 @@ before_install:
|
|||
- "gem install bundler --pre"
|
||||
- "bundle -v"
|
||||
|
||||
before_script:
|
||||
- "bundle exec rake travis:before_script"
|
||||
|
||||
rvm:
|
||||
- 2.0.0
|
||||
- ruby-head
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
namespace :travis do
|
||||
def verbose_system(*args)
|
||||
puts(args.join(' '))
|
||||
system(*args)
|
||||
end
|
||||
task :before_script do
|
||||
verbose_system("cp -f config/mongoid.yml.example config/mongoid.yml")
|
||||
verbose_system("cp -f config/application.yml.example config/application.yml")
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue