add coverage and badges
This commit is contained in:
parent
e1c19dee80
commit
bae476657a
@ -2,7 +2,7 @@ language: ruby
|
|||||||
sudo: false
|
sudo: false
|
||||||
cache: bundler
|
cache: bundler
|
||||||
script:
|
script:
|
||||||
- ruby test/test_all.rb
|
- CODECLIMATE_REPO_TOKEN=e778c5658e8488a37795ec48f8c6990135f7a2ec35ceadc2e816a4ed1e3f20ab ruby test/test_all.rb
|
||||||
rvm:
|
rvm:
|
||||||
- 1.9.3
|
- 1.9.3
|
||||||
- 2.0.0
|
- 2.0.0
|
||||||
|
1
Gemfile
1
Gemfile
@ -6,6 +6,7 @@ gem "rake"
|
|||||||
|
|
||||||
gem "salama-reader" , :github => "salama/salama-reader"
|
gem "salama-reader" , :github => "salama/salama-reader"
|
||||||
gem "salama-object-file" , :github => "salama/salama-object-file"
|
gem "salama-object-file" , :github => "salama/salama-object-file"
|
||||||
|
gem "codeclimate-test-reporter", require: nil
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem "minitest"
|
gem "minitest"
|
||||||
|
10
Gemfile.lock
10
Gemfile.lock
@ -22,17 +22,27 @@ GEM
|
|||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
blankslate (3.1.3)
|
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)
|
minitest (5.6.1)
|
||||||
|
multi_json (1.11.2)
|
||||||
parslet (1.7.0)
|
parslet (1.7.0)
|
||||||
blankslate (>= 2.0, <= 4.0)
|
blankslate (>= 2.0, <= 4.0)
|
||||||
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
|
||||||
x64-mingw32
|
x64-mingw32
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
codeclimate-test-reporter
|
||||||
minitest
|
minitest
|
||||||
rake
|
rake
|
||||||
rubygems-tasks
|
rubygems-tasks
|
||||||
|
@ -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.
|
Salama is about native code generation in and of ruby.
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'bundler'
|
require 'bundler'
|
||||||
begin
|
begin
|
||||||
@ -9,6 +7,11 @@ rescue Bundler::BundlerError => e
|
|||||||
$stderr.puts "Run `bundle install` to install missing gems"
|
$stderr.puts "Run `bundle install` to install missing gems"
|
||||||
exit e.status_code
|
exit e.status_code
|
||||||
end
|
end
|
||||||
|
if ENV['CODECLIMATE_REPO_TOKEN']
|
||||||
|
require "codeclimate-test-reporter"
|
||||||
|
CodeClimate::TestReporter.start
|
||||||
|
end
|
||||||
|
|
||||||
require "minitest/autorun"
|
require "minitest/autorun"
|
||||||
|
|
||||||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||||
|
Loading…
Reference in New Issue
Block a user