2016-12-02 28 views
1

我有一个用Ruby编写的Logstash插件,它在TravisCI上启动失败,但它在本地工作。任何想法这意味着什么?TravisCI Ruby项目不能与rspec一起使用

$ bundle exec rspec spec 

The signal EXIT is in use by the JVM and will not work correctly on this platform 

Coverage may be inaccurate; set the "--debug" command line option, or do JRUBY_OPTS="--debug" or set the "debug.fullTrace=true" option in your .jrubyrc 

W, [2016-12-02T14:12:20.127000 #5894] WARN -- :  This usage of the Code Climate Test Reporter is now deprecated. Since version 

     1.0, we now require you to run `SimpleCov` in your test/spec helper, and then 

     run the provided `codeclimate-test-reporter` binary separately to report your 

     results to Code Climate. 

     More information here: https://github.com/codeclimate/ruby-test-reporter/blob/master/README.md 

The command "bundle exec rspec spec" exited with 1. 

从这里:

https://travis-ci.org/mikebski/logstash-filter-datepart

回答

2

正如你可以在code-climate/ruby-test-reporter CHANGELOG看,你需要更换您的测试帮助文件中的这些线(在我的情况spec/spec_helper.rb):

require 'codeclimate-test-reporter' 
CodeClimate::TestReporter.start 

这些人:

require 'simplecov' 
SimpleCov.start 

此后,您还必须明确地拨打codeclimate-test-reporter

希望它有帮助!

相关问题