This repository was archived by the owner on Jan 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 57
57
name : Python Tests
58
58
command : docker-compose run web python-tests
59
59
60
+ - run :
61
+ name : Missing migrations
62
+ command : docker-compose run web migrations-check
63
+
60
64
- run :
61
65
name : Contract tests
62
66
command : |
Original file line number Diff line number Diff line change 2
2
set -eo pipefail
3
3
4
4
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 "
6
6
exit 1
7
7
}
8
8
@@ -37,6 +37,12 @@ case $1 in
37
37
fi
38
38
set -e
39
39
;;
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
+ ;;
40
46
python-tests)
41
47
echo " Running Python tests"
42
48
junit_path=$ARTIFACTS_PATH /test_results/python_tests
@@ -50,9 +56,6 @@ case $1 in
50
56
first-start)
51
57
echo " Starting the gunicorn server the first time"
52
58
./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
- )
56
59
./manage.py update_actions
57
60
start_gunicorn
58
61
;;
You can’t perform that action at this time.
0 commit comments