foodsoft/.travis.yml
wvengen 7841245795 migrate to Rails 4.0 (closes foodcoops#214)
Conflicts:
	Gemfile.lock
2014-02-24 12:46:28 +01:00

17 lines
630 B
YAML

language: ruby
rvm:
- 2.0.0
services:
- redis-server
env: COVERALLS=1
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
before_script:
- "bundle exec rake foodsoft:setup:stock_config"
- "mysql -e 'create database foodsoft_test;'"
- 'printf "test:\n adapter: mysql2\n database: foodsoft_test\n username: travis\n encoding: utf8\n" >config/database.yml'
- 'bundle exec rake db:schema:load RAILS_ENV=test'
# 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