Skip to content
Snippets Groups Projects
Unverified Commit c5c1ac2f authored by Luke Murphy's avatar Luke Murphy
Browse files

Try to get the CI building and running.

parent 46a55363
No related branches found
No related tags found
1 merge request!54Upgrade, Remove DYE, Fix up failing tests
---
stages:
- django-checks
- imports
- checks
- style
- documentation
- test
image: python:2
......@@ -18,31 +16,30 @@ variables:
DJANGO_SECRET_KEY: 'nde2wr2r)#a*%n$!(zl8#3v_o!sp=hd9vbv%*e6atgr0dp=b(7'
before_script:
- virtualenv --python=python2.7 .ve
- source .ve/bin/activate
- pip install -U pipenv setuptools pip
- ln -srf internewshid/local_settings.py.dev internewshid/local_settings.py
- |
echo "SECRET_KEY = '$DJANGO_SECRET_KEY'" >> internewshid/private_settings.py
echo "DB_PASSWORD = '$MYSQL_ROOT_PASSWORD'" >> internewshid/private_settings.py
checks:
stage: django-checks
stage: checks
script:
- python manage.py check
- python manage.py makemigrations --check
- pipenv run python manage.py check
- pipenv run python manage.py makemigrations --check
isort:
stage: imports
style:
stage: style
script:
- pipenv run pylava internewshid
- |
isort internewshid \
pipenv run isort internewshid \
--recursive \
--check-only \
--diff \
--settings-path=setup.cfg
pylama:
stage: style
script:
- pylava internewshid
pytest:
test:
stage: test
script:
- pytest -v
- pipenv run pytest -v
from __future__ import unicode_literals, absolute_import
import private_settings
DEBUG = True
ASSETS_DEBUG = DEBUG
ASSETS_AUTO_BUILD = DEBUG
DJANGOJS_DEBUG = DEBUG
DEPLOY_ENV = "localdev"
DEPLOY_ENV_NAME = "Local dev copy"
DEPLOY_ENV_COLOR = '#ff9900'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'internewshid',
'USER': 'internewshid',
'PASSWORD': private_settings.DB_PASSWORD,
'TEST': {
'CHARSET': 'utf8',
'COLLATION': 'utf8_general_ci',
}
}
}
EMAIL_HOST = 'localhost'
SITE_HOSTNAME = 'localhost:8000'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False
}
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',
)
local_settings.py.dev
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment