[vala/wip/ci: 9/11] ci: Build and deploy API documentation



commit af4ac70ea8403314174e39ce2611bb7a348408b9
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Mar 7 20:54:20 2019 +0100

    ci: Build and deploy API documentation

 .gitlab-ci.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fec08e4b..dde1f1a70 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,14 +11,17 @@ fedora-gcc-x86_64:
     - dnf install -y autoconf autoconf-archive automake bison dbus-x11 flex gcc git glib2-devel 
graphviz-devel lcov libxslt make vala
   script:
     - git fetch --tags
-    - ./autogen.sh --enable-coverage
+    - ./autogen.sh --prefix=$HOME/vala-installed --enable-coverage
     - make -j4
+    - make install
     - make -j4 coverage-report
+    - make -C doc internal-api-docs
   coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
   artifacts:
     name: "vala-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     paths:
       - "coverage"
+      - "doc/internal-apis"
     expire_in: 2 days
 
 ubuntu-clang-x86_64:
@@ -60,7 +63,10 @@ ubuntu-lts-16-gcc-x86_64:
 pages:
   stage: deploy
   script:
-    - mv coverage/ public/
+    - mkdir public
+    - mv coverage public/.
+    - mv doc/internal-apis public/docs
+    - echo "<html><body><h1>Vala</h1><ul><li><a href="docs/index.html">Documentation</a></li><li><a 
href="coverage/index.html">Coverage</a></li></ul></body></html>" > public/index.html
   artifacts:
     name: "vala-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     paths:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]