add coverage and badges

This commit is contained in:
Torsten Ruger 2015-07-18 13:06:42 +03:00
parent e1c19dee80
commit bae476657a
5 changed files with 22 additions and 4 deletions

View File

@ -2,7 +2,7 @@ language: ruby
sudo: false
cache: bundler
script:
- ruby test/test_all.rb
- CODECLIMATE_REPO_TOKEN=e778c5658e8488a37795ec48f8c6990135f7a2ec35ceadc2e816a4ed1e3f20ab ruby test/test_all.rb
rvm:
- 1.9.3
- 2.0.0

View File

@ -6,6 +6,7 @@ gem "rake"
gem "salama-reader" , :github => "salama/salama-reader"
gem "salama-object-file" , :github => "salama/salama-object-file"
gem "codeclimate-test-reporter", require: nil
group :development do
gem "minitest"

View File

@ -22,17 +22,27 @@ GEM
remote: http://rubygems.org/
specs:
blankslate (3.1.3)
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)
parslet (1.7.0)
blankslate (>= 2.0, <= 4.0)
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
x64-mingw32
DEPENDENCIES
codeclimate-test-reporter
minitest
rake
rubygems-tasks

View File

@ -1,5 +1,9 @@
# Salama
[![Build Status](https://travis-ci.org/salama/salama.svg?branch=master)](https://travis-ci.org/salama/salama)
[![Gem Version](https://badge.fury.io/rb/salama.svg)](http://badge.fury.io/rb/salama)
[![Code Climate](https://codeclimate.com/github/salama/salama/badges/gpa.svg)](https://codeclimate.com/github/salama/salama)
[![Test Coverage](https://codeclimate.com/github/salama/salama/badges/coverage.svg)](https://codeclimate.com/github/salama/salama)
# Salama
Salama is about native code generation in and of ruby.

View File

@ -1,5 +1,3 @@
require 'rubygems'
require 'bundler'
begin
@ -9,6 +7,11 @@ rescue Bundler::BundlerError => e
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
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'))