Move test into the Makefile
This commit is contained in:
parent
175c66cddf
commit
4e6bf385ad
3 changed files with 12 additions and 20 deletions
|
@ -1,18 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
cd ..
|
||||
set -x
|
||||
|
||||
# Check we can build everything
|
||||
go mod download
|
||||
go build ./...
|
||||
|
||||
# Run the server and shut it down again to ensure our docker-compose works
|
||||
ROVE_ARGS="--quit 1" docker-compose up --build --exit-code-from=rove-server --abort-on-container-exit
|
||||
|
||||
# Run tests with coverage
|
||||
go test -v ./... -cover -coverprofile=/tmp/c.out -count 1
|
||||
|
||||
# Convert the coverage data to html
|
||||
go tool cover -html=/tmp/c.out -o /tmp/coverage.html
|
Loading…
Add table
Add a link
Reference in a new issue