Skip to content

Commit

Permalink
Build docs in CircleCI (#2810)
Browse files Browse the repository at this point in the history
* error checking the API call
* added docs build trigger to circleci job
  • Loading branch information
mircea-c authored and jackzampolin committed Nov 14, 2018
1 parent 7f07e93 commit 45b0e3a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ defaults: &defaults
environment:
GOBIN: /tmp/workspace/bin

docs_update: &docs_deploy
working_directory: ~/repo
docker:
- image: tendermint/docs_deployment
environment:
AWS_REGION: us-east-1

jobs:

setup_dependencies:
Expand Down Expand Up @@ -255,12 +262,26 @@ jobs:
make build-linux
make localnet-start
./scripts/localnet-blocks-test.sh 40 5 10 localhost
deploy_docs:
<<: *docs_deploy
steps:
- checkout
- run:
name: Trigger website build
command: |
export LAST_COMMIT=`git rev-parse HEAD`
export DOCS_COMMIT=`git log -1 --format=format:%H --full-diff docs`
if [[ $DOCS_COMMIT == $LAST_COMMIT ]]; then
chamber exec cosmos-sdk -- start_website_build
else
echo "No changes to docs detected"
fi
workflows:
version: 2
test-suite:
jobs:
- deploy_docs
- setup_dependencies
- lint:
requires:
Expand Down
2 changes: 1 addition & 1 deletion PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ IMPROVEMENTS
* Gaia
- #2773 Require moniker to be provided on `gaiad init`.
- #2672 [Makefile] Updated for better Windows compatibility and ledger support logic, get_tools was rewritten as a cross-compatible Makefile.

- [#110](https://github.com/tendermint/devops/issues/110) Updated CircleCI job to trigger website build when cosmos docs are updated.
* SDK
- [x/mock/simulation] [\#2720] major cleanup, introduction of helper objects, reorganization

Expand Down

0 comments on commit 45b0e3a

Please sign in to comment.