From 4d7d1a8007877d15f45169b15baddace97270d2a Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Tue, 25 Dec 2018 10:56:12 +0000 Subject: [PATCH 1/3] Experimenting with automatic online docs --- .gitignore | 7 +++++++ .travis.yml | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 15d2ae94..e380bfbe 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,12 @@ .vs/ .idea/ +# OS Meta +.DS_Store + # CMake cmake-build-debug/ + +# Generated docs +html/ +latex/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..43dcb0d7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: cpp + +addons: + apt: + packages: + - doxygen + +jobs: + include: + - stage: build-docs + script: + - cd cpp_utils + - doxygen . + +stages: + - build-docs + +deploy: + provider: pages + skip-cleanup: true + github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable + keep-history: true + local-dir: cpp_utils/html + on: + branch: srounce-add-gh-pages From a1646c68539195fa5d7076a43699e3773558271f Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Tue, 25 Dec 2018 12:35:07 +0000 Subject: [PATCH 2/3] Add branch list --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 43dcb0d7..91fd21d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,10 @@ jobs: - cd cpp_utils - doxygen . +branches: + only: + - srounce-add-gh-pages + stages: - build-docs From 1d33faaf8befa888e8531c6c776cc71426f3c450 Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Tue, 25 Dec 2018 12:39:04 +0000 Subject: [PATCH 3/3] Change target branch to master from test branch --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 91fd21d7..3f6a3530 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ jobs: branches: only: - - srounce-add-gh-pages + - master stages: - build-docs @@ -26,4 +26,4 @@ deploy: keep-history: true local-dir: cpp_utils/html on: - branch: srounce-add-gh-pages + branch: master