rbx测试失败,并且#34;请求二进制安装,但没有红宝石可供下载"

时间:2014-05-10 21:04:01

标签: ruby travis-ci rubinius

我正在写一个宝石,我的目标是Ruby,JRuby和Rubinius。我使用Travis CI来构建我的库。当我定位Ruby和JRuby时,我的gem正确构建,但是当针对Rubinius时,它不起作用。这是错误:

Using worker: worker-linux-2-2.bb.travis-ci.org:travis-linux-13   
git.1   
$ git clone --depth=50 --branch=master git://github.com/maxgale/actor.git maxgale/actor
Cloning into 'maxgale/actor'...
remote: Counting objects: 74, done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 74 (delta 29), reused 64 (delta 22)
Receiving objects: 100% (74/74), 12.06 KiB | 0 bytes/s, done.
Resolving deltas: 100% (29/29), done.
Checking connectivity... done.

$ cd maxgale/actor
git.3
$ git checkout -qf f83f26d85f69e9c2965a4faa2065dd37ac789c36
$ rvm use rbx --install --binary --fuzzy
rbx is not installed - installing.
Searching for binary rubies, this might take some time.
Requested binary installation but no rubies are available to download, consider skipping --binary flag.

Gemset '' does not exist, 'rvm rbx do rvm gemset create ' first, or append '--create'.
The command "rvm use rbx --install --binary --fuzzy" failed and exited with 2 during setup.

Your build has been stopped.

这是我的.travis.yml文件:

language: ruby
cache: bundler

gemfile:
  - gemfiles/Gemfile.travis
rvm:
  - 2.0.0
  - 1.9.3
  - jruby-19mode
  - rbx

gemfiles/Gemfile.travis

platforms :rbx do
  gem 'rubysl', '~> 2.0'
end

eval_gemfile File.expand_path('../../Gemfile', __FILE__)

我的正常Gemfile

source 'https://rubygems.org'

gemspec path: File.expand_path('../', __FILE__)

1 个答案:

答案 0 :(得分:5)

我能够通过定位rbx-2而不是rbx来解决此问题。我的.travis.yml最终看起来像这样:

language: ruby
cache: bundler

gemfile:
  - gemfiles/Gemfile.travis
rvm:
  - 2.0.0
  - 1.9.3
  - jruby-19mode
  - rbx-2