Closed Syntaf closed 9 years ago
You've been elevated, you should now have the access you need. Thanks for your contributions!
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!
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 mergethis 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:language
; dnppy will be built withpython - "2.7"
before_install
, we need to create a virtual environment for installing these packages to. Note travis CI uses container infrastructure, so we don't have sudo or any enviroment information available to us thus why we need to do this.install
, we grab all the packages we need for python 2.7install
is finished we run thescript
, which builds our documentationafter_success
will not be calledafter_success
will calldoc_upload.py
which will use the Github API token we supply travis to move the build docs into gh-pagesgetting this working on the master repo
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
accounts
tab and activate the dnppy repo, this will now trigger a build if a.travis.yml
is detected.2.0.0
PATH
and rungem install travis -v 1.8.0 --no-rdoc --no-ri
(This requires admin elevation)travis login
doc_upload.py
permission to write to gh-pages, so copy this to your clipboardcd
into the location of the dnppy repositorytravis encrypt GH_TOKEN=$YOUR_TOKEN --add env.global
where$YOUR_TOKEN
is the token in your clipboard.travis.yml
file, notably thesecure
value is a very long value now.