Rspec TravisCI有时不能正常运行我的测试

Rspec TravisCI有时不能正常运行我的测试,rspec,continuous-integration,sinatra,cucumber,travis-ci,Rspec,Continuous Integration,Sinatra,Cucumber,Travis Ci,每隔一段时间,我都会在travis的开源项目中看到这一点(如果您愿意,请随意投稿:D): $gem安装捆绑程序 取数:bundler-1.3.5.gem(100%) 已成功安装bundler-1.3.5 已安装1个gem 安装 $bundle安装--部署 从中获取gem元数据https://rubygems.org/....... 从中获取gem元数据https://rubygems.org/.. 安装耙(10.0.3) 安装后端口(2.8.2) 安装生成器(3.1.4) 安装mime类型(1.

每隔一段时间,我都会在travis的开源项目中看到这一点(如果您愿意,请随意投稿:D):

$gem安装捆绑程序
取数:bundler-1.3.5.gem(100%)
已成功安装bundler-1.3.5
已安装1个gem
安装
$bundle安装--部署
从中获取gem元数据https://rubygems.org/.......
从中获取gem元数据https://rubygems.org/..
安装耙(10.0.3)
安装后端口(2.8.2)
安装生成器(3.1.4)
安装mime类型(1.20.1)
安装nokogiri(1.5.6)
安装机架(1.5.1)
安装机架测试(0.6.2)
安装ffi(1.3.1)
安装childprocess(0.3.7)
安装multi_json(1.5.0)
安装rubyzip(0.9.9)
安装腹板箱(1.0.7)
安装selenium webdriver(2.29.0)
安装xpath(1.0.0)
安装水豚(2.0.2)
安装coderay(1.0.8)
安装差异lcs(1.2.0)
安装json(1.7.6)
安装小黄瓜(2.11.6)
安装黄瓜(1.2.1)
安装dalli(2.2.1)
安装eventmachine(1.0.0)
安装多部分立柱(1.1.5)
安装法拉第(0.8.4)
安装faye websocket(0.4.7)
安装git(1.2.5)
安装http_parser.rb(0.5.3)
使用打捆机(1.3.5)
安装rdoc(3.12)
安装珠宝商(1.8.4)
安装元类(0.0.1)
安装方法\u源(0.8.1)
安装摩卡咖啡(0.13.2)
安装poltergeist(1.1.2)
安装斜坡(3.3.3)
安装撬杆(0.9.10)
安装机架保护(1.3.2)
安装rspec芯(2.13.1)
安装rspec期望值(2.13.0)
安装rspec模拟(2.13.0)
安装rspec(2.13.0)
安装倾斜装置(1.3.3)
安装sinatra(1.3.4)
安装sinatra contrib(1.3.2)
您的包已完成!
它已安装到./vendor/bundle中
来自rdoc的安装后消息:
根据您的ruby版本,您可能需要安装ruby rdoc/ri数据:
=1.9.2:无事可做!耶!
在脚本之前。1
$export DISPLAY=:99.0
在脚本之前
$sh-e/etc/init.d/xvfb启动
正在启动虚拟X帧缓冲区:Xvfb。
$bundle exec rake
/home/travis/.rvm/rubies/ruby-2.0.0-p247/bin/ruby-S bundle-exec-cumber特性——格式漂亮
Sinatra的未定义方法“helpers”:模块(NoMethodError)
这里还可以看到有问题的构建:

项目代码位于github上:

您正在运行的sinatra版本不支持ruby 2.0.0,请尝试更新的版本


gem install sinatra--pre

您正在运行的sinatra版本不支持ruby 2.0.0,请尝试更新的版本

gem安装sinatra——预安装

$ gem install bundler
Fetching: bundler-1.3.5.gem (100%)
Successfully installed bundler-1.3.5
1 gem installed
install
$ bundle install --deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.0.3) 
Installing backports (2.8.2) 
Installing builder (3.1.4) 
Installing mime-types (1.20.1) 
Installing nokogiri (1.5.6) 
Installing rack (1.5.1) 
Installing rack-test (0.6.2) 
Installing ffi (1.3.1) 
Installing childprocess (0.3.7) 
Installing multi_json (1.5.0) 
Installing rubyzip (0.9.9) 
Installing websocket (1.0.7) 
Installing selenium-webdriver (2.29.0) 
Installing xpath (1.0.0) 
Installing capybara (2.0.2) 
Installing coderay (1.0.8) 
Installing diff-lcs (1.2.0) 
Installing json (1.7.6) 
Installing gherkin (2.11.6) 
Installing cucumber (1.2.1) 
Installing dalli (2.2.1) 
Installing eventmachine (1.0.0) 
Installing multipart-post (1.1.5) 
Installing faraday (0.8.4) 
Installing faye-websocket (0.4.7) 
Installing git (1.2.5) 
Installing http_parser.rb (0.5.3) 
Using bundler (1.3.5) 
Installing rdoc (3.12) 
Installing jeweler (1.8.4) 
Installing metaclass (0.0.1) 
Installing method_source (0.8.1) 
Installing mocha (0.13.2) 
Installing poltergeist (1.1.2) 
Installing slop (3.3.3) 
Installing pry (0.9.10) 
Installing rack-protection (1.3.2) 
Installing rspec-core (2.13.1) 
Installing rspec-expectations (2.13.0) 
Installing rspec-mocks (2.13.0) 
Installing rspec (2.13.0) 
Installing tilt (1.3.3) 
Installing sinatra (1.3.4) 
Installing sinatra-contrib (1.3.2) 
Your bundle is complete!
It was installed into ./vendor/bundle
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
before_script.1
$ export DISPLAY=:99.0
before_script.2
$ sh -e /etc/init.d/xvfb start
Starting virtual X frame buffer: Xvfb.
$ bundle exec rake
/home/travis/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -S bundle exec cucumber features --format pretty
undefined method `helpers' for Sinatra:Module (NoMethodError)