diff --git a/.travis.yml b/.travis.yml index ae5be578..2bfa53e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Gemfile b/Gemfile index 7517527a..8f9ea7f6 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/Gemfile.lock b/Gemfile.lock index 25f27489..c2dc10e1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/README.md b/README.md index df0acba8..8c00c32f 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/test/helper.rb b/test/helper.rb index b3f4c953..2da396c8 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -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'))