Generate gh-pages documentation once new commits are pushed to master #1106
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With this PR we get the documents being built and auto published by travis on the gh-pages branch, which will automatically regenerate the website http://open.qa
The website will look like this:
![screenshot from 2016-12-23 20-36-04](https://cloud.githubusercontent.com/assets/229240/21461178/7f7108c4-c94f-11e6-9615-8bd9585b97de.png)
Upon generation there's a single PDF and HTML file with all the content from the docs/ directory and automatically linked to /docs/current.pdf or /docs/index.html.
There is also documentation generated from testapi.pm (for now, more to come by using auto-generated pod :) sometime in the future)
The file
.openqa-travis.enc
contains a deploy key generated using the following procedure with a deploy key for foursixnine/openQA (and i hope that gh's security team and travis are very keen on security :) because of $reasons)This means: Somebody will need to create a deploy-key/ssh-key replace
.openqa-travis.enc
with the newly created ssh-private-key and then add the ssh public key on os-autoinst/openQA settings as a deploy keyThe generate-documentation script can be used also standalone, but requires that the user has asciidoctor installed (at least, the pdf generation will fail if asciidoctor-pdf is not installed, see the .travis.yml for reference)
As the testapi will not change that often (And honestly makes no sense), the Pod documentation will be generated only under a travis environment (therefore, the hardcoded
cpanm --install
), however, the script can be called standalone too... provided that there's a directory named src/ and the .pm files are there... with their inline pod present.This PR requires #1105