Add test script
This commit is contained in:
parent
0f507cf4fd
commit
95963e9b29
2 changed files with 21 additions and 17 deletions
19
script/test.sh
Executable file
19
script/test.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
cd ..
|
||||
set -x
|
||||
|
||||
# Test the build
|
||||
go build -v ./...
|
||||
|
||||
# Run unit tests
|
||||
go test -v ./... -cover
|
||||
|
||||
# Verify docker build
|
||||
docker build .
|
||||
|
||||
# Run the integration tests with docker-compose
|
||||
docker-compose up --build --detach
|
||||
go test -v ./... -tags integration -cover
|
||||
docker-compose down
|
Loading…
Add table
Add a link
Reference in a new issue