Generate docu during travis build (for checkChangeInDevelopment)

This commit is contained in:
Marcus Holl
2019-01-18 08:57:54 +01:00
parent 1ef91ce8a3
commit ab83e9f7b8
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -30,7 +30,11 @@ jobs:
- name: Docs Build
if: type = pull_request
install: docker pull squidfunk/mkdocs-material:3.0.4
script: docker run --rm -it -v ${TRAVIS_BUILD_DIR}:/docs -w /docs/documentation squidfunk/mkdocs-material:3.0.4 build --clean --verbose --strict
script:
- |
cp -r documentation/docs documentation/docs-tmp
./createDocu.sh vars documentation/docs-tmp/steps checkChangeInDevelopment
docker run --rm -it -v ${TRAVIS_BUILD_DIR}:/docs -w /docs/documentation squidfunk/mkdocs-material:3.0.4 build --clean --verbose --strict
- stage: Docs
name: Deploy
@@ -42,6 +46,8 @@ jobs:
PRIVATE_KEY="cfg/id_rsa"
openssl aes-256-cbc -K $encrypted_12c8071d2874_key -iv $encrypted_12c8071d2874_iv -in cfg/id_rsa.enc -out "${PRIVATE_KEY}" -d
chmod a+x gh-pages-deploy.sh
cp -r documentation/docs documentation/docs-tmp
./createDocu.sh vars documentation/docs-tmp/steps checkChangeInDevelopment
script: docker run --rm -it --entrypoint "./gh-pages-deploy.sh" -e "TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}" -v ${TRAVIS_BUILD_DIR}:/docs -w /docs squidfunk/mkdocs-material:3.0.4
# TODO: make use of GHPages deploy provider: https://docs.travis-ci.com/user/deployment/pages/
+1 -1
View File
@@ -59,6 +59,6 @@ markdown_extensions:
extra_css:
- 'css/extra.css'
edit_uri: edit/master/documentation/docs
docs_dir: docs
docs_dir: docs-tmp
site_dir: docs-gen
repo_url: https://github.com/SAP/jenkins-library