code climate and badges
This commit is contained in:
parent
9e49f2e725
commit
87c39fe903
@ -2,7 +2,7 @@ language: ruby
|
||||
sudo: false
|
||||
cache: bundler
|
||||
script:
|
||||
- ruby test/test_all.rb
|
||||
- CODECLIMATE_REPO_TOKEN=40ed7f464af09c892b27adc2cd171c36b24992d8d527428285bc55c46fe2f0e0 ruby test/test_all.rb
|
||||
rvm:
|
||||
- 1.9.3
|
||||
- 2.0.0
|
||||
|
4
Gemfile
4
Gemfile
@ -8,3 +8,7 @@ group :development do
|
||||
gem "minitest"
|
||||
gem "rubygems-tasks"
|
||||
end
|
||||
|
||||
group :test do
|
||||
gem "codeclimate-test-reporter", require: nil
|
||||
end
|
||||
|
10
Gemfile.lock
10
Gemfile.lock
@ -6,14 +6,24 @@ PATH
|
||||
GEM
|
||||
remote: http://rubygems.org/
|
||||
specs:
|
||||
codeclimate-test-reporter (0.4.6)
|
||||
simplecov (>= 0.7.1, < 1.0.0)
|
||||
docile (1.1.5)
|
||||
minitest (5.6.1)
|
||||
multi_json (1.11.2)
|
||||
rake (10.4.2)
|
||||
rubygems-tasks (0.2.4)
|
||||
simplecov (0.9.2)
|
||||
docile (~> 1.1.0)
|
||||
multi_json (~> 1.0)
|
||||
simplecov-html (~> 0.9.0)
|
||||
simplecov-html (0.9.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
codeclimate-test-reporter
|
||||
minitest
|
||||
rake
|
||||
rubygems-tasks
|
||||
|
@ -1,3 +1,8 @@
|
||||
[](https://travis-ci.org/salama/salama-object-file)
|
||||
[](http://badge.fury.io/rb/salama-object-file)
|
||||
[](https://codeclimate.com/github/salama/salama-object-file)
|
||||
[](https://codeclimate.com/github/salama/salama-object-file)
|
||||
|
||||
### Reading the code
|
||||
|
||||
Knowing what's going on while coding salama is not so easy: Hence the need to look at code dumps
|
||||
|
@ -1,18 +1,9 @@
|
||||
|
||||
require 'rubygems'
|
||||
require 'bundler'
|
||||
begin
|
||||
Bundler.setup(:default, :development)
|
||||
rescue Bundler::BundlerError => e
|
||||
$stderr.puts e.message
|
||||
$stderr.puts "Run `bundle install` to install missing gems"
|
||||
exit e.status_code
|
||||
if ENV['CODECLIMATE_REPO_TOKEN']
|
||||
require "codeclimate-test-reporter"
|
||||
CodeClimate::TestReporter.start
|
||||
end
|
||||
|
||||
require "minitest/autorun"
|
||||
|
||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))
|
||||
|
||||
require 'salama-object-file'
|
||||
|
||||
module Checker
|
||||
|
Loading…
x
Reference in New Issue
Block a user