2014-11-12 2 views
1

배포가 작동하지 않는 이유를 모르겠습니다. 나는 빌드 콘솔에서 다음과 같은 오류를 받고 있어요 :Travis gem deployment failed "디렉토리가 존재하지 않음"

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: 
    - [email protected] 
addons: 
    code_climate: 
    repo_token: X 
deploy: 
    provider: rubygems 
    api_key: 
    secure: XXX 
    gemspec: prismic.gemspec 
    on: 
    tags: true 
    all_branches: true 

빌드 문제점은 무엇입니까?

+0

실제로 로그에 오류가있는 것처럼 보이지만 여전히 배포 된 보석을 배포하는 것처럼 보입니다. 그렇습니까? – roidrage

+0

실제로 수동으로 배포했습니다. – erwan

답변

0

오류 :

/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

은 당신이 당신의 공급자에게 파일을 배포하는 방법과 관련이있을 수 있습니다 그것은 git stash에 의해 트리거와 DPL::Provider#cleanup 과정 (참조 : releases.rb를)입니다. 기본적으로 Deployment Provider은 최신 커밋에서 파일을 배포합니다. 이 때문에이 단지 "릴리스"공급자가 정리를 건너 뛸 필요가 있음을 의미한다, 모든 공급자가 지원되지 않습니다, 그래서이 줄을 추가하여 (@BanzaiMan comment 참조) 대신에 현재 파일 상태에서 배포해야합니다 :

skip_cleanup: true 

을 이것은 모든 공급자가 약간 다른 플래그를 가지고 있기 때문에 Deployment section (또는 GitHub for supported providers의 최신 설명서 확인)에 설명되어 있습니다.


기본적으로 File#basename이 ( @BanzaiMan comment에 따라) 디렉토리 부분을 제거된다 더 나아가, 위의 오류가 기본적으로 트래비스 CI 버그 (GH #1648)과 관련이

그것은 분명하지 않다 이유는 CLI의 경우 매니페스트 수 없습니다. 그래서 이것은 가까운 장래에 고칠 것이 있습니다.

관련 문제