Travis CI构建错误Windows,Ruby on rails app

时间:2016-12-24 13:38:57

标签: ruby-on-rails travis-ci

我在Travis CI中实际上有3个错误: 这是日志:

1:

Gem::InstallError: rack requires Ruby version >= 2.2.2.
Installing erubis 2.7.0
An error occurred while installing rack (2.0.1), and Bundler cannot continue.
Make sure that `gem install rack -v '2.0.1'` succeeds before bundling.
The command "eval bundle install --jobs=3 --retry=3 --deployment" failed. Retrying, 2 of 3.

我安装了`gem install rack -v' 2.0.1'但我没有帮助。 我也更改了我的travis.yml文件,因此它是

rvm:
  - 2.2.2

而不是:

rvm:
  - 2.2

2:

Gem::InstallError: rack requires Ruby version >= 2.2.2.
Installing websocket-driver 0.6.4
An error occurred while installing mime-types-data (3.2016.0521), and Bundler
cannot continue.
Make sure that `gem install mime-types-data -v '3.2016.0521'` succeeds before
bundling.

我安装了`mime-types-data -v' 3.2016.0521'但我没有帮助。

3:

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-2 do rvm gemset create ' first, or append '--create'.
The command "rvm use rbx-2 --install --binary --fuzzy" failed and exited with 2 during .

我的travis.yml:

language: ruby
rvm:
  - 2.2.2
  - jruby
  - rbx-2
before_install:  
- gem update
- gem --version
before_script:
  - psql -c 'create database listapp_test;' -U postgres
addons:
  postgresql: '9.3'

我试图更新机架,但我没有帮助。 Ruby ver:ruby 2.2.4.p230 有谁知道如何解决它?

1 个答案:

答案 0 :(得分:0)

听起来你在Bundler无法找到它的地方安装gem。如果您发布显示您遇到的问题的构建日志URL,则会容易得多。

请注意,由于https://github.com/rubinius/rubinius/issues/3717,Travis CI不再支持Rubinius on Precise(上面的问题#3)。请尝试使用Trusty。