code climate and badges
This commit is contained in:
parent
9e49f2e725
commit
87c39fe903
@ -2,7 +2,7 @@ language: ruby
|
|||||||
sudo: false
|
sudo: false
|
||||||
cache: bundler
|
cache: bundler
|
||||||
script:
|
script:
|
||||||
- ruby test/test_all.rb
|
- CODECLIMATE_REPO_TOKEN=40ed7f464af09c892b27adc2cd171c36b24992d8d527428285bc55c46fe2f0e0 ruby test/test_all.rb
|
||||||
rvm:
|
rvm:
|
||||||
- 1.9.3
|
- 1.9.3
|
||||||
- 2.0.0
|
- 2.0.0
|
||||||
|
4
Gemfile
4
Gemfile
@ -8,3 +8,7 @@ group :development do
|
|||||||
gem "minitest"
|
gem "minitest"
|
||||||
gem "rubygems-tasks"
|
gem "rubygems-tasks"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :test do
|
||||||
|
gem "codeclimate-test-reporter", require: nil
|
||||||
|
end
|
||||||
|
10
Gemfile.lock
10
Gemfile.lock
@ -6,14 +6,24 @@ PATH
|
|||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
codeclimate-test-reporter (0.4.6)
|
||||||
|
simplecov (>= 0.7.1, < 1.0.0)
|
||||||
|
docile (1.1.5)
|
||||||
minitest (5.6.1)
|
minitest (5.6.1)
|
||||||
|
multi_json (1.11.2)
|
||||||
rake (10.4.2)
|
rake (10.4.2)
|
||||||
rubygems-tasks (0.2.4)
|
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
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
codeclimate-test-reporter
|
||||||
minitest
|
minitest
|
||||||
rake
|
rake
|
||||||
rubygems-tasks
|
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
|
### Reading the code
|
||||||
|
|
||||||
Knowing what's going on while coding salama is not so easy: Hence the need to look at code dumps
|
Knowing what's going on while coding salama is not so easy: Hence the need to look at code dumps
|
||||||
|
@ -1,18 +1,9 @@
|
|||||||
|
if ENV['CODECLIMATE_REPO_TOKEN']
|
||||||
require 'rubygems'
|
require "codeclimate-test-reporter"
|
||||||
require 'bundler'
|
CodeClimate::TestReporter.start
|
||||||
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
|
|
||||||
end
|
end
|
||||||
|
|
||||||
require "minitest/autorun"
|
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'
|
require 'salama-object-file'
|
||||||
|
|
||||||
module Checker
|
module Checker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user