CI: add job for building docs

This commit is contained in:
Alexander Zobnin
2018-10-21 17:41:20 +03:00
parent 696200e9f3
commit bdac33d914

View File

@@ -8,6 +8,9 @@ aliases:
- &filter-only-master - &filter-only-master
branches: branches:
only: master only: master
- &filter-docs
branches:
only: docs
version: 2 version: 2
jobs: jobs:
@@ -81,6 +84,18 @@ jobs:
- store_artifacts: - store_artifacts:
path: /tmp/circleci-test-results path: /tmp/circleci-test-results
build-docs:
working_directory: ~/alexanderzobnin/grafana-zabbix
docker:
- image: circleci/python:2.7
steps:
- checkout
- run: git lfs fetch --all
- run: pip install --upgrade pip
- run: pip install mkdocs
- run: cd docs && mkdocs build --clean
workflows: workflows:
version: 2 version: 2
build-master: build-master:
@@ -100,3 +115,8 @@ workflows:
filters: *filter-not-release-or-master filters: *filter-not-release-or-master
- test: - test:
filters: *filter-not-release-or-master filters: *filter-not-release-or-master
build-docs:
jobs:
- build-docs:
filters: *filter-docs