From a4ebc4c86bd2ae79fd51c3880a37c56f475800d4 Mon Sep 17 00:00:00 2001 From: kimarakov Date: Wed, 3 Jan 2018 19:58:57 -0800 Subject: [PATCH] Add additional verification checks to Travis CI - Check that Django's check framework does not report any errors. - Check that all necessary migrations have been created. --- .travis.yml | 2 ++ tests/settings.py | 1 + 2 files changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index c9a6613..04e8087 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,8 @@ install: before_script: - flake8 - isort --check-only --diff + - python -m django check --settings=tests.settings + - python -m django makemigrations --settings=tests.settings --no-input --dry-run --check script: - coverage run -m django test --settings=tests.settings - coverage report -m diff --git a/tests/settings.py b/tests/settings.py index 83d9df9..b7bb0d0 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -51,6 +51,7 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': ':memory:', } }