Skip to content

Commit

Permalink
Add a helper script to run cassandra and execute tests (#5620)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir authored Jan 23, 2024
1 parent 68706a6 commit 18aaa6f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/run_cass_and_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -eo pipefail

function finish {
echo "shut down containers"
docker-compose -f docker/docker-compose.yml down;
}
trap finish EXIT

# shut down containers
docker-compose -f docker/docker-compose.yml down;

# run cassandra container
docker-compose -f docker/docker-compose.yml up -d cassandra;

# run the tests with cassandra
CASSANDRA=1 make test | tee test.log;

0 comments on commit 18aaa6f

Please sign in to comment.