Skip to content

Commit

Permalink
CircleCI seems to be having issues with circlec_dev_setup not overrid…
Browse files Browse the repository at this point in the history
…ing settings correctly. Explicitly named configuration Test and set circle.yml to use Test as DJANGO_CONFIGURATION envar
  • Loading branch information
Tthomas63 committed Jul 17, 2020
1 parent db819a9 commit d2facaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
5 changes: 1 addition & 4 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
- run:
name: Install Memcached reqs
command: sudo apt-get update && sudo apt-get install libmemcached-dev --fix-missing
- run:
name: Install Memcached if not already installed
command: sudo apt-get install memcached
- run:
name: PIP Install Requirements
command: pip install -r codalab/requirements/common.txt
Expand All @@ -38,7 +35,7 @@ jobs:
name: Run PyTest
environment:
DJANGO_SETTINGS_MODULE: "codalab.settings"
DJANGO_CONFIGURATION: "Dev"
DJANGO_CONFIGURATION: "Test"
CHAHUB_API_URL: "http://localhost/test/"
CHAHUB_API_KEY: "some-secret-key"
command: cd codalab && py.test
13 changes: 1 addition & 12 deletions circlec_dev_setup.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
from base import DevBase


class Dev(DevBase):
class Test(DevBase):
"""This is needed to run circleci, it should be copied to local.py"""
ENABLE_COMPETITIONS = True
ENABLE_WORKSHEETS = False
# CACHES = {
# 'default': {
# 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
# }
# }
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
},
'compressor': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'compressor'
}
}

COMPRESS_CACHE_BACKEND = 'compressor'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
Expand Down

0 comments on commit d2facaf

Please sign in to comment.