<div dir="ltr"><div>Hi Nyall,</div><div><br></div><div>thanks for this useful information!</div><div><br></div><div>Do we have a place to store it? Developer docs maybe?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 1:20 AM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 9 Oct 2018 at 19:18, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>> wrote:<br>
><br>
> Hey all,<br>
<br>
><br>
> #! /usr/bin/env bash<br>
>   curl -s -X POST \<br>
>    -H "Content-Type: application/json" \<br>
>    -H "Accept: application/json" \<br>
>    -H "Travis-API-Version: 3" \<br>
>    -H "Authorization: token <TOKEN>" \<br>
>    -d '{ "quiet": true }' \<br>
>    <a href="https://api.travis-ci.org/job/" rel="noreferrer" target="_blank">https://api.travis-ci.org/job/</a><JOB_ID>/debug<br>
><br>
<br>
<br>
Just a follow up here. Turns out the default configuration (shown<br>
above) is limited to a 30 minute timeout, which isn't enough to get<br>
all the dependencies installed and QGIS built, let alone leaving time<br>
for debugging ;)<br>
<br>
After some discussion with Travis staff (who have been fantastic, I've<br>
got to say!), there's a workaround. By changing "quiet": true to<br>
"quiet": false, the interactive session is subject to the normal 90(+)<br>
minute timeout. The side effect is that all the commands entered are<br>
visible to anyone looking at the Travis log, so be careful not to do<br>
this with any sensitive information.<br>
<br>
The command is full is:<br>
<br>
#! /usr/bin/env bash<br>
  curl -s -X POST \<br>
   -H "Content-Type: application/json" \<br>
   -H "Accept: application/json" \<br>
   -H "Travis-API-Version: 3" \<br>
   -H "Authorization: token <TOKEN>" \<br>
   -d '{ "quiet": false }' \<br>
   <a href="https://api.travis-ci.org/job/" rel="noreferrer" target="_blank">https://api.travis-ci.org/job/</a><JOB_ID>/debug<br>
<br>
<br>
Nyall<br>
<br>
<br>
> The Job ID is displayed in the build log after expanding "Build system<br>
> information".<br>
><br>
> 2. Head back to the web UI and in the log of your job. There you<br>
> should see the following lines to connect to the VM:<br>
><br>
> Setting up debug tools.<br>
> Preparing debug sessions.<br>
> Use the following SSH command to access the interactive debugging environment:<br>
> ssh <a href="mailto:ukjiuCEkxBBnRAe32Y8xCH0zj@ny2.tmate.io" target="_blank">ukjiuCEkxBBnRAe32Y8xCH0zj@ny2.tmate.io</a><br>
><br>
> 3. Connect from your computer using SSH into the interactive session,<br>
> and once you're done, just type exit and your build will terminate.<br>
><br>
> Once in the SSH session, these bash functions will come in handy to<br>
> run the different phases in your build:<br>
> <a href="https://docs.travis-ci.com/user/running-build-in-debug-mode/#Things-to-do-once-you-are-inside-the-debug-VM" rel="noreferrer" target="_blank">https://docs.travis-ci.com/user/running-build-in-debug-mode/#Things-to-do-once-you-are-inside-the-debug-VM</a><br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>