Make the travis log shorter, enable coveralls rails mode

This commit is contained in:
Henne Vogelsang 2014-04-10 11:59:24 +02:00
parent 25f24c1410
commit 33d74277d0
2 changed files with 9 additions and 8 deletions

View file

@ -8,12 +8,13 @@ notifications:
email:
on_success: change
on_failure: change
script:
- "cp config/database.yml.example config/database.yml"
- "cp config/config.yml.example config/config.yml"
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- cp config/database.yml.example config/database.yml
- cp config/config.yml.example config/config.yml
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
script:
- bundle exec rake spec
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

View file

@ -1,9 +1,9 @@
require 'coveralls'
Coveralls.wear!('rails')
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'coveralls'
Coveralls.wear!
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are