Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build-contract
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ function wait_for_contract {
cd $ROOT/build-contracts/
for compose_file in $(ls | grep .yml); do
docker_compose="docker-compose -f $compose_file"
$docker_compose rm -f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could just remove this altogether? As we're doing --force-recreate anyways?

$docker_compose up --build --force-recreate -d
$docker_compose logs -f &
bar=$(wait_for_contract)
echo "Build Contract finished with $bar"
$docker_compose kill
$docker_compose rm -f
$docker_compose kill
if [[ $bar -ne 0 ]]; then
echo "ERROR: Build Contract failed, please see logs above for details"
echo "ERROR: Aborting build!"
Expand Down