Commit 4bce97fe by lanrion

for config CI

parent 6b86da2c
...@@ -2,8 +2,7 @@ language: ruby ...@@ -2,8 +2,7 @@ language: ruby
bundler_args: --without development bundler_args: --without development
rvm: rvm:
- 2.0.0 - 2.0.0
script: script: bundle exec rspec spec
- "rspec"
services: services:
- redis - redis
addons: addons:
......
source 'https://rubygems.org' source 'https://rubygems.org'
group :test do group :test, :development do
gem "rspec", "~> 3.0.0.beta1" gem "rspec", "~> 3.0.0.beta1"
gem "redis-namespace", "~> 1.4.1" gem "redis-namespace", "~> 1.4.1"
if ENV["CI"] end
group :test do
gem 'simplecov', :require => false gem 'simplecov', :require => false
gem "codeclimate-test-reporter", require: nil gem "codeclimate-test-reporter", require: nil
gem 'coveralls', require: false gem 'coveralls', require: false
end
end end
# Specify your gem's dependencies in weixin_authorize.gemspec # Specify your gem's dependencies in weixin_authorize.gemspec
......
...@@ -19,25 +19,23 @@ require "multi_json" ...@@ -19,25 +19,23 @@ require "multi_json"
require "redis" require "redis"
require "redis-namespace" require "redis-namespace"
if ENV["CI"] require 'coveralls'
require 'coveralls' require 'simplecov'
require 'simplecov' require "codeclimate-test-reporter"
require "codeclimate-test-reporter"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter Coveralls::SimpleCov::Formatter
] ]
SimpleCov.start do SimpleCov.start do
add_filter '/spec/' add_filter '/spec/'
minimum_coverage(99) minimum_coverage(99)
end
ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
CodeClimate::TestReporter.start
end end
ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
CodeClimate::TestReporter.start
ENV["APPID"]="wx986f04063d341d04" ENV["APPID"]="wx986f04063d341d04"
ENV["APPSECRET"]="1a941cd88cb4579ba98ec06b6813af03" ENV["APPSECRET"]="1a941cd88cb4579ba98ec06b6813af03"
ENV["OPENID"]="o9k6BuB0kydAcPTc7sPxppB1GQqA" ENV["OPENID"]="o9k6BuB0kydAcPTc7sPxppB1GQqA"
......
...@@ -24,8 +24,5 @@ Gem::Specification.new do |spec| ...@@ -24,8 +24,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake" spec.add_development_dependency "rake"
spec.add_development_dependency "redis-namespace", "~> 1.4.1"
spec.add_development_dependency "rspec", "~> 3.0.0.beta1"
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment