rove/script/test.sh
2020-05-31 11:40:40 +01:00

19 lines
No EOL
314 B
Bash
Executable file

#!/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