From 8af98ed9d9ad438d551632a6839aa9c215f87a4a Mon Sep 17 00:00:00 2001 From: Tuomas Suutari Date: Fri, 26 Jan 2018 10:13:22 +0200 Subject: [PATCH] Travis: Run tests with DEBUG=0 Tests should be run for production code, not development code, so set DEBUG=0 when running tests. There might be many differences between production and development code. At least the following is known: In the development environment "django_extensions" is added to INSTALLED_APPS, but it's not used in production environment. --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index df1ea53d..dac664bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,11 @@ python: - '3.5' - '3.6' +env: + global: + - DEBUG=0 + - SECRET_KEY=topsecret123 + cache: pip # As of 2017-08 the new travis trusty images have broken postgis, @@ -35,6 +40,3 @@ script: fi after_success: codecov - -env: - - SECRET_KEY=topsecret123