Move test deployment out to it's own file
This commit is contained in:
parent
74e1cd4564
commit
e542999b91
3 changed files with 33 additions and 15 deletions
31
docker-compose-test.yml
Normal file
31
docker-compose-test.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
rove-test-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: rove:latest
|
||||
ports:
|
||||
- "9090:9090"
|
||||
environment:
|
||||
- PORT=9090
|
||||
- DATA_PATH=/tmp/
|
||||
- WORDS_FILE=data/words_alpha.txt
|
||||
- TICK_RATE=10
|
||||
command: [ "./rove-server"]
|
||||
|
||||
rove-tests:
|
||||
depends_on: [ rove-test-server ]
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: rove:latest
|
||||
environment:
|
||||
- ROVE_GRPC=rove-test-server
|
||||
command: [ "./script/wait-for-it.sh", "rove-test-server:9090", "--", "go", "test", "-v", "./...", "--tags=integration", "-cover", "-coverprofile=/mnt/coverage-data/c.out", "-count", "1" ]
|
||||
volumes:
|
||||
- /tmp/coverage-data:/mnt/coverage-data:rw
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue