mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
Adding ability to run all tests inside docker containers (#973)
* Adding ability to run all tests inside docker containers * Adding test dockerfile * Small changes to the testing sections
This commit is contained in:
committed by
Michal Pristas
parent
c3d1d14d23
commit
c2647da423
@@ -1,5 +1,24 @@
|
||||
version: '3'
|
||||
services:
|
||||
testunit:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.test
|
||||
command: ["./scripts/test_unit.sh"]
|
||||
environment:
|
||||
- GO_ENV=test
|
||||
- ATHENS_MINIO_ENDPOINT=minio:9000
|
||||
- ATHENS_MONGO_STORAGE_URL=mongodb://mongo:27017
|
||||
- TIMEOUT=20 # in case the mongo dependency takes longer to start up
|
||||
- ATHENS_STORAGE_TYPE=mongo
|
||||
depends_on:
|
||||
- mongo
|
||||
- minio
|
||||
teste2e:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.test
|
||||
command: ["./scripts/test_e2e.sh"]
|
||||
mongo:
|
||||
image: mongo:3.7.9-jessie
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user