add travis before script

This commit is contained in:
yafeilee 2014-07-17 20:42:36 +08:00
parent 60fb24d284
commit 19e77e5ff6
2 changed files with 14 additions and 0 deletions

View File

@ -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

11
lib/tasks/travis.rake Normal file
View File

@ -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