foodcoop-adam/foodsoft

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: ruby
rvm: 
  - 1.9.3
services:
  - redis-server
env: COVERALLS=1
before_install:
  - "sudo apt-get install libicu-dev"
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
install: bundle install --jobs=3 --retry=3 --deployment --without development
before_script:
  - "bundle exec rake foodsoft:setup:stock_config"
  - "mysql -e 'create database foodsoft_test;'"
  - 'printf "test: &test\n  adapter: mysql2\n  database: foodsoft_test\n  username: travis\n  encoding: utf8\n" >config/database.yml'
  - 'printf "sharedlists:\n  <<: *test\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