Skip to content
Browse files

Add Coveralls and more Ruby versions for testing

  • Loading branch information...
1 parent ec31892 commit 981eaab66f6cc803ede47f1221599e1364f3cef7 @rymai rymai committed May 20, 2013
Showing with 48 additions and 78 deletions.
  1. +4 −9 .gitignore
  2. +7 −1 .travis.yml
  3. +1 −1 README.md
  4. +0 −52 Rakefile
  5. +7 −0 gemfiles/minitest-1
  6. +0 −8 gemfiles/minitest-1.7
  7. +5 −6 gemfiles/minitest-2
  8. +7 −0 gemfiles/minitest-3
  9. +7 −0 gemfiles/minitest-4
  10. +7 −0 gemfiles/minitest-5
  11. +3 −1 spec/spec_helper.rb
View
13 .gitignore
@@ -1,13 +1,8 @@
pkg/*
*.gem
.bundle
-Gemfile.lock
-/gemfiles/*.lock
-
-## MAC OS
.DS_Store
-.Trashes
-.com.apple.timemachine.supported
-.fseventsd
-Desktop DB
-Desktop DF
+.rvmrc
+.rbx/*
+Gemfile.lock
+coverage/
View
8 .travis.yml
@@ -10,9 +10,15 @@ rvm:
- jruby-19mode
- rbx-18mode
- rbx-19mode
+ - ruby-head
+ - jruby-head
+ - rbx-head
gemfile:
- - gemfiles/minitest-1.7
+ - gemfiles/minitest-1
- gemfiles/minitest-2
+ - gemfiles/minitest-3
+ - gemfiles/minitest-4
+ - gemfiles/minitest-5
matrix:
exclude:
- rvm: 1.8.7
View
2 README.md
@@ -5,7 +5,7 @@ Guard::Minitest allows to automatically & intelligently launch tests with the
[minitest framework](https://github.com/seattlerb/minitest) when files are modified.
* Compatible with minitest 1.7.x & 2.x.
-* Tested against Ruby 1.8.7, 1.9.2, 1.9.3, 2.0.0, REE, JRuby (1.8 & 1.9 mode) & Rubinius (1.8 & 1.9 mode).
+* Tested against Ruby 1.8.7, 1.9.2, 1.9.3, 2.0.0, Ruby head, REE, JRuby (1.8 mode, 1.9 mode & head) & Rubinius (1.8 mode, 1.9 mode & head).
## Install
View
52 Rakefile
@@ -17,55 +17,3 @@ task :test do
end
task :default => :test
-
-require 'rbconfig'
-namespace(:test) do
- if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/i
- desc "Run all specs on multiple ruby versions (requires pik)"
- task(:portability) do
- puts 'minitest can\'t be tested on MS Windows for now'
- end
- else
- desc "Run all specs on multiple ruby versions (requires rvm)"
- task(:portability) do
- travis_config_file = File.expand_path("../.travis.yml", __FILE__)
- begin
- travis_options ||= YAML::load_file(travis_config_file)
- rescue => ex
- puts "Travis config file '#{travis_config_file}' could not be found: #{ex.message}"
- return
- end
-
- travis_options['rvm'].each do |version|
- system <<-BASH
- bash -c 'source ~/.rvm/scripts/rvm;
- rvm #{version};
- ruby_version_string_size=`ruby -v | wc -m`
- echo;
- for ((c=1; c<$ruby_version_string_size+21; c++)); do echo -n "="; done
- echo;
- echo "minitest version 1 - `ruby -v`";
- for ((c=1; c<$ruby_version_string_size+21; c++)); do echo -n "="; done
- echo;
- BUNDLE_GEMFILE=./gemfiles/minitest-1.7 bundle install;
- BUNDLE_GEMFILE=./gemfiles/minitest-1.7 bundle exec rake test 2>&1'
- BASH
- if version =~ /^1\.9/
- system <<-BASH
- bash -c 'source ~/.rvm/scripts/rvm;
- rvm #{version};
- ruby_version_string_size=`ruby -v | wc -m`
- echo;
- for ((c=1; c<$ruby_version_string_size+21; c++)); do echo -n "="; done
- echo;
- echo "minitest version 2 - `ruby -v`";
- for ((c=1; c<$ruby_version_string_size+21; c++)); do echo -n "="; done
- echo;
- BUNDLE_GEMFILE=./gemfiles/minitest-2.1 bundle install;
- BUNDLE_GEMFILE=./gemfiles/minitest-2.1 bundle exec rake test 2>&1'
- BASH
- end
- end
- end
- end
-end
View
7 gemfiles/minitest-1
@@ -0,0 +1,7 @@
+source 'https://rubygems.org'
+
+gem 'rake'
+gem 'bundler'
+gem 'mocha'
+gem 'guard'
+gem 'minitest', '~> 1.0'
View
8 gemfiles/minitest-1.7
@@ -1,8 +0,0 @@
-source 'http://rubygems.org'
-
-gem 'rake'
-gem 'guard', '~> 1.0'
-gem 'minitest', '~> 1.7.2'
-gem 'bundler', '~> 1.0'
-gem 'mocha', '~> 0.10'
-
View
11 gemfiles/minitest-2
@@ -1,8 +1,7 @@
-source 'http://rubygems.org'
+source 'https://rubygems.org'
gem 'rake'
-gem 'guard', '~> 1.0'
-gem 'minitest', '~> 2.1'
-gem 'bundler', '~> 1.0'
-gem 'mocha', '~> 0.10'
-
+gem 'bundler'
+gem 'mocha'
+gem 'guard'
+gem 'minitest', '~> 2.0'
View
7 gemfiles/minitest-3
@@ -0,0 +1,7 @@
+source 'https://rubygems.org'
+
+gem 'rake'
+gem 'bundler'
+gem 'mocha'
+gem 'guard'
+gem 'minitest', '~> 3.0'
View
7 gemfiles/minitest-4
@@ -0,0 +1,7 @@
+source 'https://rubygems.org'
+
+gem 'rake'
+gem 'bundler'
+gem 'mocha'
+gem 'guard'
+gem 'minitest', '~> 4.0'
View
7 gemfiles/minitest-5
@@ -0,0 +1,7 @@
+source 'https://rubygems.org'
+
+gem 'rake'
+gem 'bundler'
+gem 'mocha'
+gem 'guard'
+gem 'minitest', '~> 5.0'
View
4 spec/spec_helper.rb
@@ -1,5 +1,7 @@
-# encoding: utf-8
require 'minitest/spec'
+require 'coveralls'
+Coveralls.wear!
+
require 'mocha/setup'
require 'guard/minitest'

0 comments on commit 981eaab

Please sign in to comment.
Something went wrong with that request. Please try again.