code climate and badges

This commit is contained in:
Torsten Ruger 2015-07-18 12:33:00 +03:00
parent 9e49f2e725
commit 87c39fe903
5 changed files with 24 additions and 14 deletions

View File

@ -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

View File

@ -8,3 +8,7 @@ group :development do
gem "minitest"
gem "rubygems-tasks"
end
group :test do
gem "codeclimate-test-reporter", require: nil
end

View File

@ -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

View File

@ -1,3 +1,8 @@
[![Build Status](https://travis-ci.org/salama/salama-object-file.svg?branch=master)](https://travis-ci.org/salama/salama-object-file)
[![Gem Version](https://badge.fury.io/rb/salama-object-file.svg)](http://badge.fury.io/rb/salama-object-file)
[![Code Climate](https://codeclimate.com/github/salama/salama-object-file/badges/gpa.svg)](https://codeclimate.com/github/salama/salama-object-file)
[![Test Coverage](https://codeclimate.com/github/salama/salama-object-file/badges/coverage.svg)](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

View File

@ -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