Skip to content

Commit

Permalink
switch rake rspec output to progress
Browse files Browse the repository at this point in the history
do not load fuubar on travis
  • Loading branch information
inukshuk committed Apr 28, 2013
1 parent 2b92063 commit dfe3e2b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
language: ruby
bundler_args: --without extra
rvm:
- 1.9.3
notifications:
email:
recipients:
- rintze.zelle@gmail.com
- i@nukshuk.io
- sylvester@keil.or.at
- karcher@u.northwestern.edu
- charles.parnot@gmail.com
on_success: change
Expand Down
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ source 'https://rubygems.org'

gem 'rake'
gem 'rspec'
gem 'fuubar'
gem 'nokogiri'
gem 'csl', '~>1.0'

group :extra do
gem 'fuubar'
end
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ end
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = %w{ --require spec_helper.rb --format Fuubar --color }
spec.rspec_opts = %w{ --require spec_helper.rb --format progress --color }
end

task :default => [:spec]
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# These styles are ignored when checking for valid citation-formats
CITATION_FORMAT_FILTER = %w{
all bibtex blank national-archives-of-australia
bibtex blank national-archives-of-australia
}

# These files are ignored when checking for extra files
Expand Down Expand Up @@ -77,14 +77,14 @@ def load_style(path)
print "\nLoading dependent styles"

Dependents = Hash[Dir[File.join(STYLE_ROOT, 'dependent', '*.csl')].each_with_index.map { |path, i|
print '.' if i % 100 == 0
print '.' if i % 120 == 0
load_style(path)
}]

print "\nLoading independent styles"

Independents = Hash[Dir[File.join(STYLE_ROOT, '*.csl')].each_with_index.map { |path, i|
print '.' if i % 100 == 0
print '.' if i % 120 == 0
load_style(path)
}]

Expand Down

0 comments on commit dfe3e2b

Please sign in to comment.