Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit eb88df4

Browse files
committed
No migrations left behind, in CI
Fixes #1590
1 parent 23f23be commit eb88df4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
working_directory: ~/normandy
1414

1515
environment:
16-
COMPOSE_FILE: ci/docker-compose.yml
16+
COMPOSE_FILE: ci/docker-compose.yml
1717

1818
steps:
1919
- checkout

bin/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ case $1 in
5050
first-start)
5151
echo "Starting the gunicorn server the first time"
5252
./manage.py migrate
53+
./manage.py makemigrations --check --no-input --dry-run || (
54+
echo "You probably have migrations that need to be created" && exit 1
55+
)
5356
./manage.py update_actions
5457
start_gunicorn
5558
;;

0 commit comments

Comments
 (0)