NASA-DEVELOP / dnppy

DEVELOP National Program Python package for use with NASA data and GIS!
https://nasa-develop.github.io/dnppy/
Other
81 stars 40 forks source link

Integrate Travis-CI automated webpage generation and deploying #55

Closed Syntaf closed 9 years ago

Syntaf commented 9 years ago

I've been playing around with Travis-CI's container infrastructure a lot and think this could be a cool addition. I know back in DEVELOP @Jwely you mentioned if there was a way that the docs would auto update themselves upon commit. Sadly there currently doesn't exist any tools that do such, but on the bright side I took the liberty to write a tool that would do such for you guys! Check out my fork for a working integration of this (the link in the readme.md won't work, since it's http://syntaf.github.io/dnppy/ under my fork) and see the automated build logs here.


note: if you merge this pull request, make sure you commit a change that deletes the following lines in .travis.yml after you merge

env:
  global:
    secure: Wf3ESkJOuwC4Jwl6gGnXPhrLmmM5cLbo3OVVI7mdrXkUPE9le3Frlo6Dh9X+mrCCi+rxxWJ+98733pxZNF7gsmDfG1PFfBeQBxLuz9fnHsDZbfhhSH/AQ7A/cmkfaPXIzY/Thj0VbBx7s6fF7bKxlZGicrSE3pWVoqzTDho+SS/uluzcaYAJ2ru5dvi8knGoWZb9Eiw6my/NhSIbwge50pfruQPEY7I4+lBny/a8nItIWVmSS5q8dS3f7pglYqOG952NzZSqb2SLiHTWoES18Tv3zhjIuHTyoht724jnvQSqM9jw8bW5v/Co8NTMMFrXjcktAEJv3tDGAZ05Mz/zZH8Gu/YASsTZM5E10fuuqRaCzZh8PbTztGjhWqP1u7NMibxFSxQw4L8fe+Y1brwuWpPuxplwe3z7lY8R5V/sfReeebvm4MjOcMzAGdVmkZW4zOF30NpwPp8sroFYpM7yGli7BjmqiZsK2W95r+W7UrbDXIoM05pfEDQE4B9H0wifOsXE3AgmYK/EavJuRaTKUznu2a05ObJPvWaPP0k3RoU+jv7TozMlr8r1yameyv46tLyaqRjlxNhjlXkAZERNpygGsGlVmF27p7nf/FFsuMWEeXDwBlpbZI59g5frAtD48/FpwHaxmbJydMcgQSVyxwl0LFO9OXprbESlwR49Teo=

this is an auto generated encrypted key used for my fork, this needs to be deleted once merged before you do anything since this will not work for you.

tl;dr

Simply put, this pull request will integrate Travis-CI's (free) remote building container infrastructure with your documentation chain. Every commit you make will proc a remote build, which will build your documentation and deploy it to your gh-pages. there are some extra steps needed to get this working

explanation

travis-ci is an awesome tool that lets you remotely build commits made to repositories, it's a free service and can really save you a lot of time. Once you activate a repo in their site, the repo needs a .travis.yml to receive the necessary build instructions . Here's what I told travis for dnppy:

There are two ways of going about this: 1. Give me temporary admin access until I finish setting this up for your guys, or 2. Follow the tutorial and i'll help troubleshoot. (2) is preferable because then if errors are encountered you can understand them yourselves.

The tutorial below is only from my memory, so bare with me if it doesn't work, I can troubleshoot with you if you send me information on what doesn't work


Jwely commented 9 years ago

You've been elevated, you should now have the access you need. Thanks for your contributions!

Syntaf commented 9 years ago

Look's like it's actually working with no extra configuration needed on my end, awesome! link. Writing this script inspired me to start writing a tool that will allow anyone to start auto deploying their doc website through travis, so expect a new pull request soon that integrates my tool into .travis.yml and no longer need's that extra script!