2013-07-24 13:21:52 +02:00
|
|
|
language: ruby
|
|
|
|
rvm:
|
|
|
|
- 1.9.3
|
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
before_install:
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
2013-07-24 21:28:42 +02:00
|
|
|
before_script:
|
2013-07-24 13:21:52 +02:00
|
|
|
- "bundle exec rake foodsoft:setup:stock_config"
|
2013-07-24 21:47:27 +02:00
|
|
|
- "mysql -e 'create database foodsoft_test;'"
|
2013-07-24 21:40:36 +02:00
|
|
|
- 'printf "test:\n adapter: mysql2\n database: foodsoft_test\n username: travis\n encoding: utf8\n" >config/database.yml'
|
2013-07-24 21:57:17 +02:00
|
|
|
- 'bundle exec rake db:schema:load RAILS_ENV=test'
|
2013-11-21 00:29:24 +01:00
|
|
|
# add format to get output with rspec-rerun https://github.com/dblock/rspec-rerun/issues/2
|
|
|
|
- 'echo "--color --format progress" >.rspec'
|
|
|
|
script: bundle exec rake rspec-rerun:spec
|