Skip to content

Commit cf2d35c

Browse files
authored
Restore Travis and Coveralls badges (#18)
* Add Travis and Coveralls * Fix broken tests * Add badges
1 parent 32e5f37 commit cf2d35c

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: ruby
2+
rvm:
3+
- 2.3.1
4+
before_install: gem install bundler -v 1.10.6
5+
install:
6+
- bundle install
7+
- bundle exec rake install
8+
script: "rake spec"
9+
after_success: "coveralls"

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in optimizely-sdk.gemspec
44
gemspec
5+
gem 'coveralls', require: false
56
gem 'murmurhash3'
67
gem 'webmock'

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#Optimizely Ruby SDK
2+
[![Build Status](https://travis-ci.org/optimizely/ruby-sdk.svg?branch=master)](https://travis-ci.org/optimizely/ruby-sdk)
3+
[![Coverage Status](https://coveralls.io/repos/github/optimizely/ruby-sdk/badge.svg)](https://coveralls.io/github/optimizely/ruby-sdk)
4+
[![Apache 2.0](https://img.shields.io/github/license/nebula-plugins/gradle-extra-configurations-plugin.svg)](http://www.apache.org/licenses/LICENSE-2.0)
25

36
This repository houses the Ruby SDK for Optimizely's Full Stack product.
47

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'coveralls'
2+
Coveralls.wear!
13
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
24
require 'optimizely'
35
require 'spec_params'

0 commit comments

Comments
 (0)