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 +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 13
13
working_directory : ~/normandy
14
14
15
15
environment :
16
- COMPOSE_FILE : ci/docker-compose.yml
16
+ COMPOSE_FILE : ci/docker-compose.yml
17
17
18
18
steps :
19
19
- checkout
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,13 @@ case $1 in
37
37
fi
38
38
set -e
39
39
;;
40
+ migrations-check)
41
+ ./manage.py migrate
42
+ echo " Checking that all migrations have been made"
43
+ ./manage.py makemigrations --check --no-input --dry-run || (
44
+ echo " You probably have migrations that need to be created" && exit 1
45
+ )
46
+ ;;
40
47
python-tests)
41
48
echo " Running Python tests"
42
49
junit_path=$ARTIFACTS_PATH /test_results/python_tests
You can’t perform that action at this time.
0 commit comments