Commit 4bce97fe by lanrion

for config CI

parent 6b86da2c
......@@ -2,8 +2,7 @@ language: ruby
bundler_args: --without development
rvm:
- 2.0.0
script:
- "rspec"
script: bundle exec rspec spec
services:
- redis
addons:
......
source 'https://rubygems.org'
group :test do
group :test, :development do
gem "rspec", "~> 3.0.0.beta1"
gem "redis-namespace", "~> 1.4.1"
if ENV["CI"]
end
group :test do
gem 'simplecov', :require => false
gem "codeclimate-test-reporter", require: nil
gem 'coveralls', require: false
end
end
# Specify your gem's dependencies in weixin_authorize.gemspec
......
......@@ -19,25 +19,23 @@ require "multi_json"
require "redis"
require "redis-namespace"
if ENV["CI"]
require 'coveralls'
require 'simplecov'
require "codeclimate-test-reporter"
require 'coveralls'
require 'simplecov'
require "codeclimate-test-reporter"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
]
SimpleCov.start do
SimpleCov.start do
add_filter '/spec/'
minimum_coverage(99)
end
ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
CodeClimate::TestReporter.start
end
ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
CodeClimate::TestReporter.start
ENV["APPID"]="wx986f04063d341d04"
ENV["APPSECRET"]="1a941cd88cb4579ba98ec06b6813af03"
ENV["OPENID"]="o9k6BuB0kydAcPTc7sPxppB1GQqA"
......
......@@ -24,8 +24,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "redis-namespace", "~> 1.4.1"
spec.add_development_dependency "rspec", "~> 3.0.0.beta1"
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