add travis-ci configuration
This commit is contained in:
parent
62682b7e64
commit
6da2fdee6d
2 changed files with 20 additions and 0 deletions
11
.travis.yml
Normal file
11
.travis.yml
Normal 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
|
|
@ -38,6 +38,15 @@ namespace :foodsoft do
|
||||||
puts yellow "All done! Your foodcoft should be running smoothly."
|
puts yellow "All done! Your foodcoft should be running smoothly."
|
||||||
start_server
|
start_server
|
||||||
end
|
end
|
||||||
|
|
||||||
|
namespace :setup do
|
||||||
|
desc "Initialize stock configuration"
|
||||||
|
task :stock_config do
|
||||||
|
setup_app_config
|
||||||
|
setup_development
|
||||||
|
setup_secret_token
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def setup_bundler
|
def setup_bundler
|
||||||
|
|
Loading…
Reference in a new issue