Rewrite integration tests to run with Docker containers
This commit is contained in:
26
tests/docker/compose.integration.postgres.yaml
Normal file
26
tests/docker/compose.integration.postgres.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '2'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:9.5
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: kanboard
|
||||
ports:
|
||||
- "5432:5432"
|
||||
app:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: tests/docker/Dockerfile.xenial
|
||||
ports:
|
||||
- "8000:80"
|
||||
depends_on:
|
||||
- postgres
|
||||
command: config-postgres
|
||||
tests:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: tests/docker/Dockerfile.xenial
|
||||
depends_on:
|
||||
- app
|
||||
command: integration-test-postgres
|
||||
Reference in New Issue
Block a user