Let the docker-compose file build the server docker
This commit is contained in:
parent
d3dd1130a2
commit
a89e577aec
2 changed files with 8 additions and 5 deletions
|
@ -4,11 +4,8 @@ cd "$(dirname "$0")"
|
|||
cd ..
|
||||
set -x
|
||||
|
||||
# Build the image
|
||||
bash script/build.sh
|
||||
|
||||
# Build and start the service
|
||||
docker-compose up --detach
|
||||
# Build and start rove-server
|
||||
docker-compose up --detach --build
|
||||
|
||||
# Run tests, including integration tests
|
||||
go mod download
|
||||
|
@ -17,5 +14,8 @@ go test -v ./... -tags integration -cover -coverprofile=/tmp/c.out
|
|||
# Take down the service
|
||||
docker-compose down
|
||||
|
||||
# Check that the cmdline client builds
|
||||
docker build -f "cmd/rove/Dockerfile" .
|
||||
|
||||
# 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