add travis-ci configuration

This commit is contained in:
wvengen 2013-07-24 13:21:52 +02:00
parent 62682b7e64
commit 6da2fdee6d
2 changed files with 20 additions and 0 deletions

11
.travis.yml Normal file
View file

@ -0,0 +1,11 @@
language: ruby
rvm:
- 1.9.3
services:
- redis-server
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "bundle exec rake foodsoft:setup:stock_config"
- 'printf "test:\r\n adapter:mysql2\r\n database:foodsoft_test\r\n username:travis\r\n encoding:utf8\r\n" >config/database.yml'
script: bundle exec rake spec

View file

@ -38,6 +38,15 @@ namespace :foodsoft do
puts yellow "All done! Your foodcoft should be running smoothly."
start_server
end
namespace :setup do
desc "Initialize stock configuration"
task :stock_config do
setup_app_config
setup_development
setup_secret_token
end
end
end
def setup_bundler