Skip to content

Commit

Permalink
Splits wagtail-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Oct 30, 2023
1 parent 9c4ff64 commit d8e6caa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
15 changes: 1 addition & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build:
context: .
target: base
image: ov-wag
image: ghcr.io/wgbh-mla/ov-wag:pr-76
volumes:
- ./:/app/
entrypoint: /app/docker_entrypoints/dev.sh
Expand All @@ -15,20 +15,7 @@ services:
delay: 5s
max_attempts: 3
window: 5s
wagtail-tests:
build:
context: .
target: test
image: ov-tests
volumes:
- ./:/app/
entrypoint: /app/docker_entrypoints/test.sh
environment:
- OV_DB_ENGINE=django.db.backends.sqlite3
- OV_DB_NAME=testdb
db:
image: postgres:14.2-alpine
volumes:
- ./db:/var/lib/postgresql/data:Z
user: ${UID}:${GID}
restart: always
16 changes: 8 additions & 8 deletions ov
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ USAGE:\n\n
COMMANDS:\n\n
\t b | build \t build the docker image\n
\t c | cmd \t run a bash command with the wagtail docker image\n
\t coverage \t run the coverage tests
\t d | dev \t start a development server\n
\t h | help \t prints this help text\n
\t s | shell \t enter into a python shell with the app context\n
\t t | test \t run the wagtail test suite
\t m | manage \t run a manage.py command
\t b | build \t build the docker image\n
\t c | cmd \t run a bash command with the wagtail docker image\n
\t cov | coverage\t run the coverage tests\n
\t d | dev \t start a development server\n
\t h | help \t prints this help text\n
\t s | shell \t enter into a python shell with the app context\n
\t t | test \t run the wagtail test suite\n
\t m | manage \t run a manage.py command\n\n
"

COMPOSE="docker compose -f docker-compose.yml"
Expand Down
14 changes: 14 additions & 0 deletions test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3.8'

services:
tests:
build:
context: .
target: test
image: ov-tests
volumes:
- ./:/app/
entrypoint: /app/docker_entrypoints/test.sh
environment:
- OV_DB_ENGINE=django.db.backends.sqlite3
- OV_DB_NAME=testdb

0 comments on commit d8e6caa

Please sign in to comment.