2013-04-13 104 views
0

我分叉了一個現有的存儲庫,然後克隆它。我,然後對代碼進行了更改,然後將更改推送到分叉的存儲庫。然後,我創建了對基本回購的請求。Github:當Travis構建失敗時,這是什麼意思呢?

Travis構建完成後,我發現它失敗了。它基本上是什麼意思?

+2

特拉維斯會告訴你;不知何故測試失敗。按照指向你的具體工作的鏈接,看看日誌告訴你什麼。 –

+0

失敗的作業示例:https://travis-ci.org/sferik/mtgox/jobs/6306535 –

回答

1

看起來有些測試是失敗的,例如:

1) MtGox::Client#buy! should place a bid 
    Failure/Error: buy = @client.buy!(0.88, 0.89) 
    WebMock::NetConnectNotAllowedError: 
     Real HTTP connections are disabled. Unregistered request: POST https://data.mtgox.com/api/0/buyBTC.php with body 'amount=0.88&price=0.89&nonce=1321745961249676' with headers {'Accept'=>'*/*', 'Content-Type'=>'application/x-www-form-urlencoded', 'Rest-Key'=>'key', 'Rest-Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/YAb2lACdFRrQWFFFMDBTbwIBu8aELgBmgL8j3qqIpY99ozh9FjcA==', 'User-Agent'=>'Ruby'} 

     You can stub this request with the following snippet: 

     stub_request(:post, "https://data.mtgox.com/api/0/buyBTC.php"). 
     with(:body => {"amount"=>"0.88", "nonce"=>"1321745961249676", "price"=>"0.89"}, 
       :headers => {'Accept'=>'*/*', 'Content-Type'=>'application/x-www-form-urlencoded', 'Rest-Key'=>'key', 'Rest-Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/YAb2lACdFRrQWFFFMDBTbwIBu8aELgBmgL8j3qqIpY99ozh9FjcA==', 'User-Agent'=>'Ruby'}). 
     to_return(:status => 200, :body => "", :headers => {}) 

     registered request stubs: 

     stub_request(:post, "https://mtgox.com/api/0/buyBTC.php"). 
     with(:body => "amount=0.88&price=0.89&nonce=1321745961249676", 
       :headers => {'Rest-Key'=>'key', 'Rest-Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/YAb2lACdFRrQWFFFMDBTbwIBu8aELgBmgL8j3qqIpY99ozh9FjcA=='}) 

     ============================================================ 
    # ./lib/mtgox/request.rb:16:in `request' 
    # ./lib/mtgox/request.rb:10:in `post' 
    # ./lib/mtgox/client.rb:178:in `buy!' 
    # ./spec/mtgox/client_spec.rb:211:in `block (3 levels) in <top (required)>' 

當你提交pull請求在GitHub上,如果您配置了特拉維斯,特拉維斯將開始構建了該作品的特定版本-樹。如果travis被配置爲運行某些測試並指示失敗(這種情況恰好在您的情況下),則表明Travis構建失敗。

理想情況下,您需要修復您提交的用於拉取請求的分支中的這些錯誤,並在上游作者批准您的拉取請求之前讓travis構建成功。