Make the travis log shorter, enable coveralls rails mode
This commit is contained in:
parent
25f24c1410
commit
33d74277d0
2 changed files with 9 additions and 8 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -8,12 +8,13 @@ notifications:
|
||||||
email:
|
email:
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: change
|
on_failure: change
|
||||||
script:
|
before_install:
|
||||||
- "cp config/database.yml.example config/database.yml"
|
- export DISPLAY=:99.0
|
||||||
- "cp config/config.yml.example config/config.yml"
|
- 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
|
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||||
- bundle exec rake db:test:prepare
|
- bundle exec rake db:test:prepare
|
||||||
|
script:
|
||||||
- bundle exec rake spec
|
- bundle exec rake spec
|
||||||
before_install:
|
|
||||||
- "export DISPLAY=:99.0"
|
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
|
require 'coveralls'
|
||||||
|
Coveralls.wear!('rails')
|
||||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||||
ENV["RAILS_ENV"] ||= 'test'
|
ENV["RAILS_ENV"] ||= 'test'
|
||||||
require File.expand_path("../../config/environment", __FILE__)
|
require File.expand_path("../../config/environment", __FILE__)
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
require 'coveralls'
|
|
||||||
Coveralls.wear!
|
|
||||||
|
|
||||||
# Requires supporting ruby files with custom matchers and macros, etc, in
|
# Requires supporting ruby files with custom matchers and macros, etc, in
|
||||||
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue