From 8f642c5078e7152b06cd5fb2c75c85715915f525 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 29 Aug 2018 10:52:07 +0100 Subject: [PATCH] Remove test settings and tidy up CI --- .circleci/config.yml | 3 +-- .travis.yml | 2 -- opentech/settings/test.py | 37 ------------------------------------- 3 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 opentech/settings/test.py diff --git a/.circleci/config.yml b/.circleci/config.yml index 74a1ad29b..e65acb0cc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: DATABASE_URL: postgresql://root@localhost/opentech?sslmode=disable PGHOST: localhost PGUSER: root - DJANGO_SETTINGS_MODULE: opentech.settings.test + DJANGO_SETTINGS_MODULE: opentech.settings.production NPM_CONFIG_PRODUCTION: false SEND_MESSAGES: false @@ -84,4 +84,3 @@ jobs: - store_artifacts: path: test-reports destination: test-reports - diff --git a/.travis.yml b/.travis.yml index bbba2b979..e726c0017 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,8 +21,6 @@ env: global: - DJANGO_SETTINGS_MODULE=opentech.settings.production - DATABASE_URL=postgres://postgres@localhost/test_db - - CFG_SECRET_KEY=iamnotsosecret - - CFG_ALLOWED_HOSTS=localhost before_script: # Create a database diff --git a/opentech/settings/test.py b/opentech/settings/test.py deleted file mode 100644 index 0be3a21d1..000000000 --- a/opentech/settings/test.py +++ /dev/null @@ -1,37 +0,0 @@ -import os -import dj_database_url - -from .base import * # noqa - -# Do not set SECRET_KEY, Postgres or LDAP password or any other sensitive data here. -# Instead, use environment variables or create a local.py file on the server. - -DEBUG = True - - -# Cache everything for 10 minutes -# This only applies to pages that do not have a more specific cache-control -# setting. See urls.py -CACHE_CONTROL_MAX_AGE = 600 - - -# Configuration from environment variables -# Alternatively, you can set these in a local.py file on the server - -env = os.environ.copy() - -# Basic configuration - -APP_NAME = env.get('APP_NAME', 'opentech') - -SECURE_SSL_REDIRECT = False - -if 'DATABASE_URL' in os.environ: - DATABASES = {'default': dj_database_url.config()} - -if 'SECRET_KEY' in env: - SECRET_KEY = env['SECRET_KEY'] - -# Email config - -EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' -- GitLab