繁体   English   中英

Travis CI构建错误Windows,Ruby on Rails应用

[英]Travis CI build errors Windows, Ruby on rails app

我在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版本:ruby 2.2.4.p230有人知道如何修复它吗?

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

请注意,由于https://github.com/rubinius/rubinius/issues/3717,Travis CI无法再在精确度上支持Rubinius(上述问题3)。 尝试改用Trusty。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM