[CI] Deploy documentation to GitLab pages

This commit is contained in:
Dan Čermák
2018-06-07 00:29:47 +02:00
parent 7ac40ba0b2
commit b8a9423c5a
+17 -1
View File
@@ -27,7 +27,6 @@ variables:
paths:
- build/
stages:
- test
- deploy
@@ -73,3 +72,20 @@ Install:
- make install
- make clean
- EXIV2_BINDIR=/usr/bin/ make tests
pages:
image: fedora:28
stage: deploy
<<: *default_config
script:
- dnf -y install doxygen graphviz
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DEXIV2_ENABLE_VIDEO=ON -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_BUILD_DOC=ON ..
- make doc
- cd ..
- mv build/doc/html/ public/
artifacts:
paths:
- public
only:
- master