From f135f11564fa922931786f7f35a1b97600fe2f5d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 3 Feb 2021 23:56:59 +1100 Subject: [PATCH] Run lint checks on migration files --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 52d0ef1c5c..071b50fec5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,11 @@ script: - rm inventree_default_db.sqlite3 - invoke migrate - invoke import-records -f data.json + # Run linting checks on migration files (django-migration-linter) + # Run subset of linting checks on *ALL* migration files + - cd InvenTree && python manage.py lintmigrations --exclude-migration-test NOT_NULL ADD_UNIQUE -q ok ignore --no-cache && cd .. + # Run stricter checks on *NEW* migrations (old ones are what they are) + - cd InvenTree && python manage.py lintmigrations 79ddea50f507e34195bad635008419daac0d7a5f -q ok ignore --no-cache && cd .. after_success: - coveralls \ No newline at end of file