From e0cdf67a9e5045f434ecb10197db6917f633d459 Mon Sep 17 00:00:00 2001
From: Olivier Brisse
Date: Wed, 11 May 2016 11:34:55 +1000
Subject: [PATCH 1/2] Add Code Climate badge
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index 47687aa42..586afd6bd 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,9 @@
[![Gem Version](https://badge.fury.io/rb/mno-enterprise.svg)](https://rubygems.org/gems/mno-enterprise)
+[![Dependency Status](https://gemnasium.com/badges/github.com/maestrano/mno-enterprise.svg)](https://gemnasium.com/github.com/maestrano/mno-enterprise)
+[![Code Climate](https://codeclimate.com/github/maestrano/mno-enterprise/badges/gpa.svg)](https://codeclimate.com/github/maestrano/mno-enterprise)
+[![Test Coverage](https://codeclimate.com/github/maestrano/mno-enterprise/badges/coverage.svg)](https://codeclimate.com/github/maestrano/mno-enterprise/coverage)
The Maestrano Enterprise Engine can be included in a Rails project to bootstrap an instance of Maestrano Enterprise Express.
From dc8a9efbf6dc836f294f8eda2fb9a3009b2d2a9e Mon Sep 17 00:00:00 2001
From: Olivier Brisse
Date: Mon, 6 Jun 2016 18:41:01 +1000
Subject: [PATCH 2/2] Add Travis config
---
.travis.yml | 18 ++++++++++++++++++
README.md | 1 +
core/Gemfile | 6 ------
core/mno-enterprise-core.gemspec | 4 ++++
4 files changed, 23 insertions(+), 6 deletions(-)
create mode 100644 .travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..ed81f0f95
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,18 @@
+language: ruby
+env:
+ - GEM=api
+ - GEM=core
+ - GEM=frontend
+before_install:
+ - cd $GEM; export BUNDLE_GEMFILE="`pwd`/Gemfile"
+script:
+ - bundle install --quiet
+ - bundle exec rake test_app
+ - bundle exec rake spec
+rvm:
+ - 2.1
+ - 2.2
+ - 2.3.1
+addons:
+ code_climate:
+ repo_token: 7b6a43d5fa6ad571f5674176b0b85a79f62bfb7a908eb8bdd52941566706770e
diff --git a/README.md b/README.md
index 586afd6bd..48af6f52b 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@
[![Gem Version](https://badge.fury.io/rb/mno-enterprise.svg)](https://rubygems.org/gems/mno-enterprise)
+[![Build Status](https://travis-ci.org/maestrano/mno-enterprise.svg?branch=master)](https://travis-ci.org/maestrano/mno-enterprise)
[![Dependency Status](https://gemnasium.com/badges/github.com/maestrano/mno-enterprise.svg)](https://gemnasium.com/github.com/maestrano/mno-enterprise)
[![Code Climate](https://codeclimate.com/github/maestrano/mno-enterprise/badges/gpa.svg)](https://codeclimate.com/github/maestrano/mno-enterprise)
[![Test Coverage](https://codeclimate.com/github/maestrano/mno-enterprise/badges/coverage.svg)](https://codeclimate.com/github/maestrano/mno-enterprise/coverage)
diff --git a/core/Gemfile b/core/Gemfile
index cd9fcf1c1..ae0c978e6 100644
--- a/core/Gemfile
+++ b/core/Gemfile
@@ -9,12 +9,6 @@ gemspec
# your gemspec. These might include edge Rails or gems from your path or
# Git. Remember to move these dependencies to your gemspec before releasing
# your gem to rubygems.org.
-group :test, :development do
- # Email
- gem 'mandrill-api', '~> 1.0.53'
- gem 'sparkpost', '~> 0.1.4'
-end
-
# To use a debugger
# gem 'byebug', group: [:development, :test]
diff --git a/core/mno-enterprise-core.gemspec b/core/mno-enterprise-core.gemspec
index e9e363f03..4c83baad5 100644
--- a/core/mno-enterprise-core.gemspec
+++ b/core/mno-enterprise-core.gemspec
@@ -42,4 +42,8 @@ Gem::Specification.new do |s|
s.add_dependency 'figaro'
# Config files per environment
s.add_dependency 'config', '~> 1.0.0'
+
+ # Emailing
+ # s.add_development_dependency 'mandrill-api', '~> 1.0.53'
+ s.add_development_dependency 'sparkpost', '~> 0.1.4'
end