gem2.0 install travis
travis encrypt GH_TOKEN=`cat ./github_OAUTH_token`
secure: "HIj3p+p2PV8DBVg/KGUx6n83KwB0ASE5FwOn0SMB9zxnzAqe8sapwdBQdMdq0sXB7xT1spJqRxuxOMVEVn35BNLu7bxMLfa4287C8YXcomnvmv9xruxAsjsIewnNQ80vtPVbQddBPxa4jKbqgPby5QhhAP8KANAqYe44pIV70fY="
Following Automatically Update Github Pages with Travis Example seems straighforward enough in order to have travis-ci build the sphinx docs and then push them to the gh-pages branch. (See also the discussion at the bottom of #350.)
Potential solutions
Progress so far
generated OAUTH token (limit scope to
public_repoaccess; I used the tokens web interface but can also be done viacurlas described in the awestruct gh deployment notes). DONEencrypt for travis with the
travisclient:yields the entry for the
.travis.ymlfile:(This is encrypted with the travis public key. For more details, see Travis CI: Encryption keys.)
add lines to
.travis.ymlalong the lines of(We want to build the developer docs when we push an update to the developer branch.)
I don't know if an error during doc building will then also signal a failure of a build. Perhaps doc building should be put in a sub shell (e.g.,
- (cd package/doc/sphinx && make html); true) and always return success?Write a
maintainer/deploy.shscript (or rake or whatever):package/doc/htmldir and push this cleanly to the gh-pages branch. (This will also have the advantage that the docs will appear nicely as http://www.mdanalysis.org/mdanalysis/index.html )Travis CI <TravisCI@mdanalysis.org>.test on a feature branch without screwing up our repo...