Circle CI: Upload docs

This commit is contained in:
Paweł Bylica 2018-03-28 17:01:47 +02:00
parent e30733de5b
commit 36830eb700
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 28 additions and 3 deletions

View File

@ -14,13 +14,13 @@ jobs:
name: "Build" name: "Build"
command: cmake --build ~/build command: cmake --build ~/build
generate-docs: test-docs:
docker: docker:
- image: ethereum/cpp-build-env - image: ethereum/cpp-build-env
steps: steps:
- checkout - checkout
- run: - run:
name: "Generate documentation" name: "Test documentation"
command: | command: |
doxygen docs/Doxyfile > doxygen.log 2> doxygen.warnings doxygen docs/Doxyfile > doxygen.log 2> doxygen.warnings
if [ -s doxygen.warnings ]; then if [ -s doxygen.warnings ]; then
@ -30,9 +30,34 @@ jobs:
fi fi
cat doxygen.log cat doxygen.log
upload-docs:
docker:
- image: ethereum/cpp-build-env
steps:
- checkout
- run:
name: "Generate documentation"
command: doxygen docs/Doxyfile
- run:
name: "Upload documentation"
command: |
git config user.email "docs-bot@ethereum.org"
git config user.name "Documentation Bot"
git add docs
git commit -m "Update docs"
git push -f "https://$GITHUB_TOKEN@github.com/ethereum/evmc.git" HEAD:gh-pages
workflows: workflows:
version: 2 version: 2
evmc: evmc:
jobs: jobs:
- build - build
- generate-docs - test-docs
- upload-docs:
requires:
- test-docs
filters:
branches:
only:
- master
- docs