25 lines
716 B
YAML
25 lines
716 B
YAML
language: ruby
|
|
sudo: false
|
|
rvm:
|
|
- 2.1
|
|
services:
|
|
- redis-server
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libmagic-dev
|
|
- metacity
|
|
env: COVERALLS=1
|
|
before_install:
|
|
- export DISPLAY=:99.0
|
|
- sh -e /etc/init.d/xvfb start
|
|
- sleep 3 && metacity --sm-disable --replace 2> metacity.err &
|
|
cache: bundler
|
|
bundler_args:
|
|
- "--without development --deployment --jobs=3 --retry=3"
|
|
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'
|
|
script: bundle exec rake rspec-rerun:spec
|