我不明白为什么部署不起作用。我在构建控制台中得到以下错误:
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内部版本:https://travis-ci.org/prismicio/ruby-kit/jobs/40767391
我的.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构建出了什么问题?
发布于 2016-04-05 09:33:55
错误:
/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:目录不存在
这可能与您将文件部署到提供商的方式有关,并由git stash及其DPL::Provider#cleanup进程触发(请参阅:releases.rb)。默认情况下,Deployment Provider将从最近一次提交部署文件。这并不是所有的提供程序都支持,因此这只是意味着"releases“提供程序需要跳过清理,因此它应该通过添加以下行从当前文件状态(参见@BanzaiMan comment)进行部署:
skip_cleanup: true这是因为每个提供程序都有稍微不同的标志,这些标志都记录在Deployment section中(或者在GitHub for supported providers上查看最新的文档)。
此外,上面的错误基本上与Travis CI bug (GH #1648)有关,其中基本上File#basename正在剥离目录部分(根据@BanzaiMan comment),目前还不清楚为什么这不能在CLI情况下表现出来。
https://stackoverflow.com/questions/26887152
复制相似问题