Adding set up and tear down to run tests script and renanming script to runTests since it's applicable to linux and mac.
This commit is contained in:
parent
0cdf4d8885
commit
c90db4773c
1 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker-compose up -d
|
||||
|
||||
# If running docker-compose up gives any error, don't do anything.
|
||||
if [ $? -ne 0 ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# Since we run our docker compose setup in bridge mode to be able to run on MacOS, we have to launch a Docker container within the bridge network in order to avoid any routing issues.
|
||||
docker run -t -v $(pwd):/go/src/github.com/paypal/gorealis --network gorealis_aurora_cluster golang:1.10-stretch go test -v github.com/paypal/gorealis $@
|
||||
|
||||
docker-compose down
|
Loading…
Add table
Add a link
Reference in a new issue