Skip to content

Commit

Permalink
Travis: Run tests with DEBUG=0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
suutari-ai committed Jan 26, 2018
1 parent 1994d2d commit 8af98ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -35,6 +40,3 @@ script:
fi
after_success: codecov

env:
- SECRET_KEY=topsecret123

0 comments on commit 8af98ed

Please sign in to comment.