Skip to content
Snippets Groups Projects

check if all database migrations were created from django model

Merged Piotr Gawron requested to merge check-migrations-created into master
1 unresolved thread
Files
2
+ 10
0
@@ -16,6 +16,16 @@ variables:
- pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.uni.lu/simple/
- pip install -r requirements-dev.txt --default-timeout=180 -i https://pypi.lcsb.uni.lu/simple/
test_migrations_created:
<<: *test_definition
services:
- postgres:latest
script:
- cp "local_settings_ci.py" "smash/smash/local_settings.py"
- cd smash
- python manage.py makemigrations --check --dry-run
- test 1 = $(python manage.py makemigrations --check --dry-run | grep 'No changes detected' |wc -l)
test_postgres:
<<: *test_definition
services:
Loading