Skip to content

Commit

Permalink
Improve test environment
Browse files Browse the repository at this point in the history
* Add Rakefile, Gemfile, .travis.yml.
* Add a list of offcially supported Ruby to .travis.yml.
* Add ruby-head to Travis as allow_failures.
  allow_failures is because it's good to know new version Ruby's issue
  as faster before the release.
* fast_finish is to get the Travis result as faster
  without waiting the result of the "allow_failures" items.
  See https://blog.travis-ci.com/2013-11-27-fast-finishing-builds/
  • Loading branch information
junaruga committed Mar 31, 2017
1 parent 14e1fff commit 220940b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
@@ -0,0 +1,19 @@
language: ruby

sudo: false

before_install:
- gem install bundler

rvm:
- 2.0.0
- 2.1.10
- 2.2.6
- 2.3.3
- 2.4.1
- ruby-head

matrix:
allow_failures:
- rvm: ruby-head
fast_finish: true
7 changes: 7 additions & 0 deletions Gemfile
@@ -0,0 +1,7 @@
source "https://rubygems.org"

gemspec

gem 'rake', '~> 12.0.0'
gem 'test-unit', '~> 3.2.3'
gem 'minitest', '~> 5.10.1'
10 changes: 10 additions & 0 deletions Rakefile
@@ -0,0 +1,10 @@
require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.warning = true
t.verbose = true
end

task :default => :test

0 comments on commit 220940b

Please sign in to comment.