forked from hyperledger-iroha/iroha
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci]: Add genesis check and update documentation.
Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
- Loading branch information
1 parent
34a1f75
commit 3f30e7a
Showing
9 changed files
with
188 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
set -e | ||
cargo run --bin iroha_docs >docs/source/references/config.md | ||
cargo run --bin iroha_gen -- --docs >docs/source/references/config.md | ||
git add docs/source/references/config.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
TMPFILE=$(mktemp) | ||
|
||
case $1 in | ||
"docs") | ||
cargo run --bin iroha_gen -- --docs >"$TMPFILE" | ||
diff "$TMPFILE" docs/source/references/config.md || { | ||
echo 'Please re-generate docs with git hook in ./hooks directory' | ||
exit 1 | ||
};; | ||
"genesis") | ||
cargo run --bin iroha_gen -- --genesis >"$TMPFILE" | ||
diff "$TMPFILE" configs/peer/genesis.json || { | ||
echo 'Please re-generate the genesis with `cargo run --bin iroha_gen -- --genesis`' | ||
exit 1 | ||
};; | ||
esac |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.