LoginSignup
0
1

More than 5 years have passed since last update.

Travis CI への Heroku Deployment に失敗する場合の一例

Posted at

問題

Travis CI での Heroku Deployment に失敗する。Heroku Deployment - Travis CI にある公式の手順どおりにやっても解決しない。

解決策

travis の対象 repository が間違っている可能性がある。

travis show で確認する。

次の例は bouzuya/mr-jums を期待していたのに bouzuya/bbn-cycle を対象 repository にされていたときのもの。

$ travis show
Build #30:  DEPRECATED
State:         passed
Type:          push
Branch:        master
Compare URL:   https://github.com/bouzuya/bbn-cycle/compare/33cba4ca5db8...3b97b612bfd5
Duration:      6 min 57 sec
Started:       2016-10-11 09:21:36
Finished:      2016-10-11 09:24:08

#30.1 passed:    2 min 27 sec   node_js: node, os: linux
#30.2 passed:    2 min 15 sec   node_js: 6, os: linux
#30.3 passed:    2 min 15 sec   node_js: 5, os: linux

対象 repository が間違っていると travis encrypt の対象も変わってしまう。travis encrypt -r オプションで指定するか、git clone し直すなどして、対象 repository を変更する。

次は travis encrypt -r user/repo での対応例。

travis encrypt -r bouzuya/mr-jums $(heroku auth:token) --add deploy.api_key
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1