Skip to content

Commit

Permalink
fix: update pre-commit scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <[email protected]>
  • Loading branch information
aoyako committed Jan 17, 2025
1 parent 4c383c9 commit e1630c7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion defaults/docker-compose.local.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by `iroha_swarm`.
# Generated by `kagami swarm`.
# You should not edit this manually.
# Seed: Iroha

Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.single.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by `iroha_swarm`.
# Generated by `kagami swarm`.
# You should not edit this manually.
# Seed: Iroha

Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by `iroha_swarm`.
# Generated by `kagami swarm`.
# You should not edit this manually.
# Seed: Iroha

Expand Down
6 changes: 3 additions & 3 deletions hooks/pre-commit.sample
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ cargo run --bin kagami -- genesis generate --executor executor.wasm --wasm-dir l
# update schema
cargo run --bin kagami -- schema > ./docs/source/references/schema.json
# update docker compose files
cargo run --bin kagami swarm -- -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.single.yml -F
cargo run --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.local.yml -F
cargo run --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev -o ./defaults/docker-compose.yml -F
cargo run --bin kagami -- swarm -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.single.yml -F
cargo run --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.local.yml -F
cargo run --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev -o ./defaults/docker-compose.yml -F
# stage updates
git add ./defaults/genesis.json ./docs/source/references/schema.json ./defaults/docker-compose.single.yml ./defaults/docker-compose.local.yml ./defaults/docker-compose.yml
6 changes: 3 additions & 3 deletions scripts/tests/consistency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ case $1 in
}

command_base_for_single() {
echo "cargo run --release --bin kagami swarm -- -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ."
echo "cargo run --release --bin kagami -- swarm -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ."
}

command_base_for_multiple_local() {
echo "cargo run --release --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ."
echo "cargo run --release --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ."
}

command_base_for_default() {
echo "cargo run --release --bin kagami swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev"
echo "cargo run --release --bin kagami -- swarm -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev"
}


Expand Down

0 comments on commit e1630c7

Please sign in to comment.