Ruby Travis gem部署失败“;“目录不存在”;

Ruby Travis gem部署失败“;“目录不存在”;,ruby,deployment,rubygems,travis-ci,Ruby,Deployment,Rubygems,Travis Ci,我不明白为什么部署不起作用。生成控制台中出现以下错误: Preparing deploy Found gem /usr/lib/git-core/git-stash: 186: /usr/lib/git-core/git-stash: cannot create /home/travis/build/prismicio/ruby-kit/.git/logs/refs/stash: Directory nonexistent 建造: My.travis.yml: language: r

我不明白为什么部署不起作用。生成控制台中出现以下错误:

Preparing deploy
Found gem 
/usr/lib/git-core/git-stash: 186: /usr/lib/git-core/git-stash: cannot create     /home/travis/build/prismicio/ruby-kit/.git/logs/refs/stash: Directory nonexistent
建造:

My
.travis.yml

language: ruby
rvm:
- 2.1.1
- 2.1.0
- 2.0.0
- 1.9.3
- 1.9.2
- jruby-19mode
script: bundle exec rspec spec
notifications:
  email:
  - example@example.com
addons:
  code_climate:
    repo_token: X
deploy:
  provider: rubygems
  api_key:
    secure: XXX
  gemspec: prismic.gemspec
  on:
    tags: true
    all_branches: true
构建有什么问题?

错误:

/usr/lib/git-core/git-stash
:186:
/usr/lib/git-core/git-stash
:无法创建
/home/travis/build/prismicio/ruby-kit/.git/logs/refs/stash
:目录不存在

可能与您将文件部署到提供商的方式有关,它由
git stash
及其
DPL::provider#cleanup
过程触发(请参阅:)。默认情况下,将部署来自最新提交的文件。并非所有提供程序都支持此操作,因此这只是意味着“releases”提供程序需要跳过清理,因此它应该通过添加以下行从当前文件状态进行部署(请参见):

skip_cleanup: true
这是因为每个提供程序都有略微不同的标志,这些标志都记录在中(或用于最新的文档检查)



此外,上述错误基本上与Travis CI bug(GH)有关,其中基本上是剥离目录部分(按照),不清楚为什么这不能在CLI中体现。所以这是在不久的将来要解决的问题。

虽然日志中似乎确实存在错误,但部署gem似乎仍然有效,不是吗?我实际上是手动部署的。