2016-12-02 4 views
1

Ich habe ein Logstash Plugin in Ruby geschrieben, die auf TravisCI versagt hat begonnen, aber es funktioniert lokal. Irgendwelche Ideen was das bedeutet?TravisCI Ruby-Projekt nicht mit rspec Arbeits

$ 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. 

Von hier aus:

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

Antwort

2

Wie man auf den code-climate/ruby-test-reporter CHANGELOG sehen kann, müssen Sie diese Zeilen auf dem Test Helfer-Datei ersetzen (in meinem Fall spec/spec_helper.rb):

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

für diese hier:

require 'simplecov' 
SimpleCov.start 

Fortan müssen Sie auch codeclimate-test-reporter explizit aufrufen.

Hoffe es hilft!