summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Herlant <aerostitch@users.noreply.github.com>2017-10-29 18:10:13 -0700
committerPierre GRANDIN <pgrandin@users.noreply.github.com>2017-10-29 18:10:13 -0700
commit1db96358ed229dfc6fb2d8500542cde23fd7faa2 (patch)
tree40286156760119d87820b8832f0da12202f14fa5
parent30a5237105557eccc659efd8eba7e21dd32e60f7 (diff)
downloadnavit-1db96358ed229dfc6fb2d8500542cde23fd7faa2.tar.gz
update:doc:Build doxygen doc and push the result to a gh-pages branch (#354)
Result visible at http://navit-gps.github.io/navit/
-rw-r--r--.circleci/config.yml34
-rw-r--r--navit/Doxyfile2
2 files changed, 35 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4f8a82d39..7535a0076 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -13,6 +13,34 @@ jobs:
command: |
bash ci/setup_common_requirements.sh
bash ci/build_linux.sh
+ run_doxygen:
+ <<: *defaults
+ steps:
+ - checkout
+ - run:
+ name: Install doxygen
+ command: apt-get update && apt-get -y install doxygen ca-certificates git
+ - run:
+ name: Run doxygen
+ command: cd navit && doxygen
+ - run:
+ name: Update results to Github
+ command: |
+ mkdir /root/.ssh
+ chmod 0600 /root/.ssh
+ echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts
+ git clone -b gh-pages git@github.com:navit-gps/navit.git /root/navit-doc
+ cd /root/navit-doc
+ git config --global push.default simple
+ git config user.name "Circle CI"
+ git config user.email "circleci@navit-project.org"
+ rsync -vrtza --exclude '.git' --delete /root/project/doc/html/ /root/navit-doc/
+ echo "" > .nojekyll
+ git add .
+ git commit -am "update:doc:Doxygen update for commit ${CIRCLE_SHA1} [ci skip]" || true
+ git push
+ - store_artifacts:
+ path: /root/project/doc
build_android_arm:
<<: *defaults
steps:
@@ -102,6 +130,12 @@ jobs:
workflows:
version: 2
+ doxygen:
+ jobs:
+ - run_doxygen:
+ filters:
+ branches:
+ only: /^trunk$/
build_all:
jobs:
- build_linux
diff --git a/navit/Doxyfile b/navit/Doxyfile
index b7e049301..0b2cb9e1c 100644
--- a/navit/Doxyfile
+++ b/navit/Doxyfile
@@ -38,7 +38,7 @@ PROJECT_NAME = navit
# could be handy for archiving the generated documentation or if some version
# control system is used.
-PROJECT_NUMBER = 0.0
+PROJECT_NUMBER = 0.5.1-trunk
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a