Browse Source

Check for missing migrations in pipeline

Vince Salvino 2 năm trước cách đây
mục cha
commit
926feb78e3
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      azure-pipelines.yml

+ 5 - 0
azure-pipelines.yml

@@ -97,6 +97,11 @@ stages:
     - script: coderedcms start testproject
       displayName: 'CR-QC: Generate a test project'
 
+    - script: |
+        cd testproject/
+        python manage.py makemigrations --check
+      displayName: 'CR-QC: Check migrations'
+
     - pwsh: ./ci/run-flake8.ps1
       displayName: 'CR-QC: Flake8'