The Perl modules have inline POD docs. This can be converted to HTML and
published as a GitLab artifact. The rendered HTML is kind of ugly but
improving this is left as an exercise for the future.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
.gitlab-ci.yml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48c7840..32db3e4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ stages:
- prebuild
- containers
- build
+ - docs
.container_job_template: &container_job_definition
image: docker:stable
@@ -158,3 +159,16 @@ build-ubuntu-1604:
build-ubuntu-1804:
<<: *build_job_definition
image: ${CI_REGISTRY_IMAGE}/buildenv-ubuntu-1804:latest
+
+apiref:
+ stage: docs
+ image: perl
+ script:
+ - perl -MPod::Simple::HTMLBatch -e Pod::Simple::HTMLBatch::go lib apiref
+ artifacts:
+ expose_as: 'API Reference'
+ name: 'apiref'
+ when: on_success
+ expire_in: 30 days
+ paths:
+ - apiref
--
2.25.3