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

Commit a0aec72

Browse files
committed
its own step instead
1 parent eb88df4 commit a0aec72

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
name: Python Tests
5858
command: docker-compose run web python-tests
5959

60+
- run:
61+
name: Missing migrations
62+
command: docker-compose run web migrations-check
63+
6064
- run:
6165
name: Contract tests
6266
command: |

bin/run.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eo pipefail
33

44
usage() {
5-
echo "usage: ./bin/run.sh python-tests|js-tests|lint|start"
5+
echo "usage: ./bin/run.sh python-tests|js-tests|lint|start|migrations-check"
66
exit 1
77
}
88

@@ -37,6 +37,12 @@ case $1 in
3737
fi
3838
set -e
3939
;;
40+
migrations-check)
41+
echo "Checking that all migrations have been made"
42+
./manage.py makemigrations --check --no-input --dry-run || (
43+
echo "You probably have migrations that need to be created" && exit 1
44+
)
45+
;;
4046
python-tests)
4147
echo "Running Python tests"
4248
junit_path=$ARTIFACTS_PATH/test_results/python_tests
@@ -50,9 +56,6 @@ case $1 in
5056
first-start)
5157
echo "Starting the gunicorn server the first time"
5258
./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-
)
5659
./manage.py update_actions
5760
start_gunicorn
5861
;;

0 commit comments

Comments
 (0)