Skip to content

Commit

Permalink
Merge pull request #28 from scylladb/silent_compilation_failure
Browse files Browse the repository at this point in the history
launcher: exiting in case there is a compilation error
  • Loading branch information
Henrik Johansson authored Mar 12, 2019
2 parents d72b2c3 + 602a08d commit 2439a07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/gemini-launcher
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

function quit () {
echo $2
exit $1
}

ORACLE_NAME=gemini-oracle
TEST_NAME=gemini-test
GEMINI_CMD=/tmp/gemini
Expand All @@ -9,7 +14,7 @@ docker-compose -f scripts/docker-compose.yml up -d
ORACLE_IP=$(docker inspect --format='{{ .NetworkSettings.Networks.gemini.IPAddress }}' ${ORACLE_NAME})
TEST_IP=$(docker inspect --format='{{ .NetworkSettings.Networks.gemini.IPAddress }}' ${TEST_NAME})

GOBIN="$(dirname ${GEMINI_CMD})" go install ./...
GOBIN="$(dirname ${GEMINI_CMD})" go install ./... || quit $? "Compilation failed"

echo "Waiting for ${ORACLE_NAME} to start"
until docker logs ${ORACLE_NAME} | grep "Starting listening for CQL clients" > /dev/null; do sleep 2; done
Expand Down

0 comments on commit 2439a07

Please sign in to comment.