A. travis
が依存している gem の切り替えが --adapter
でできるので、次のように Net::HTTP
に切り替える
travis login --adapter net-http
メモ
問題発生時のエラーログ
# -E : エラーをキャッチしないで落とす travis login -E
** Loading "/home/gouf/.travis/config.yml" ** Loading gh ** GET "config" ** took 0.19 seconds Traceback (most recent call last): 11: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/bin/travis:23:in `<main>' 10: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/bin/travis:23:in `load' 9: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/bin/travis:18:in `<top (required)>' 8: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/cli.rb:64:in `run' 7: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/cli/command.rb:198:in `execute' 6: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/cli/login.rb:40:in `run' 5: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/cli/login.rb:31:in `login' 4: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/cli/login.rb:45:in `github' 3: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/cli/api_command.rb:126:in `load_gh' 2: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/client/session.rb:134:in `config' 1: from /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/client/session.rb:186:in `get_raw' /home/gouf/.anyenv/envs/rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/travis-1.8.8/lib/travis/client/session.rb:216:in `raw': SSL error: could not verify peer (Travis::Client::SSLError)
レポートの内容
travis report
System Ruby: Ruby 2.5.0-p0 Operating System: Ubuntu 17.10 RubyGems: RubyGems 2.7.6 CLI Version: 1.8.8 Plugins: none Auto-Completion: yes Last Version Check: 2018-03-29 11:13:18 +0900 Session API Endpoint: https://api.travis-ci.org/ Logged In: SSL error: could not verify peer Verify SSL: yes Enterprise: no Endpoints org: https://api.travis-ci.org/ (access token, current)
travis report --adapter net-http
System Ruby: Ruby 2.5.0-p0 Operating System: Ubuntu 17.10 RubyGems: RubyGems 2.7.6 CLI Version: 1.8.8 Plugins: none Auto-Completion: yes Last Version Check: 2018-03-29 11:13:18 +0900 Session API Endpoint: https://api.travis-ci.org/ Logged In: as "gouf" Verify SSL: yes Enterprise: no Endpoints org: https://api.travis-ci.org/ (access token, current)