找到你要的答案

Q:Travis-CI Gem Deploy Not Working

Q:特拉维斯CI宝石部署不工作

EDIT: At this point I am able to compile my gem on travis-ci but it is NOT deploying to rubygem.org and there is no error. Below is all my configuration. I need help figuring out what needs to exist in order to deploy a gem to rubygem from travis-ci?

I'm attempting to follow the instructions for adding rubygem deployment to my build.

My project is the azure-documentdb-sdk. I have configured my yml fire using the command travis setup rubygems

Here is the actual .travis.yml file on github.

The travis build is here for tag v0.0.4.

Because this is my first attempt to use travis-ci I'm at a complete loss on what to do. I believe I've followed all the proper steps but clearly I have a user error buried in here somewhere.

I really want to automate deployment.

EDIT: After some great comments let me clarify:

Per the log file we have a deployment occurring

Deploying application
  Successfully built RubyGem
  Name: azure-documentdb-sdk
  Version: 0.0.6
  File: azure-documentdb-sdk-0.0.6.gem

If I look though the gem is NOT deploying. There is no version 0.0.6 deployed.

How do I get travis-ci to deploy my compiled artifact.

Thanks!

编辑:在这一点上我能够编译特拉维斯词我的宝石,但它不是部署rubygem.org和没有错误。下面是我所有的配置。我需要帮助找出哪些需要的存在是为了部署一个宝石rubygem从特拉维斯词?

我试图遵循添加rubygem部署我的构建说明。

我的项目是Azure DocumentDB SDK。我有我的YML火配置使用命令特拉维斯安装RubyGems

这是真实的。travis.yml文件在GitHub上。

特拉维斯建立的是这里的标签v0.0.4。

因为这是我第一次尝试使用特拉维斯词我完全失去了做什么。我相信我已经遵循了所有适当的步骤,但显然我有一个用户错误埋在这里的某处。

我真的想自动化部署。

编辑:一些伟大的评论让我澄清:

每个日志文件,我们有一个部署发生

Deploying application
  Successfully built RubyGem
  Name: azure-documentdb-sdk
  Version: 0.0.6
  File: azure-documentdb-sdk-0.0.6.gem

如果我看,虽然宝石不部署。无版0.0.6部署。

我如何获得特拉维斯CI部署我编译的神器。

谢谢!

answer1: 回答1:

Ok I found the answer. The problem came down to the gemspec name did not match the name of the gem we were going to deploy to. So the the gemspec was azure-documentdb-rubysdk.gemspec and the gem was azure-documentdb-sdk

By changing the name of the gemspec and correcting the .travis.yml to reference the new name under the gem: setting the build now deploys.

确定我找到答案。问题归结于gemspec名字没有创业板的名字我们要部署到比赛。这样的gemspec是azure-documentdb-rubysdk.gemspec和创业板是Azure DocumentDB SDK

通过改变该gemspec名称和纠正。在创业板参考的新名称travis.yml:设置构建现在部署。

ruby  travis-ci  continuous-deployment