Skip to content
Snippets Groups Projects
Commit a2c72b3c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

gitlab ci job for sqlite tests

parent 2a20f7e3
No related branches found
No related tags found
1 merge request!263Resolve "support or sqlite"
Pipeline #33587 failed
...@@ -11,7 +11,7 @@ before_script: ...@@ -11,7 +11,7 @@ before_script:
- pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.uni.lu/simple/ - pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.uni.lu/simple/
- pip install -r requirements-dev.txt --default-timeout=180 -i https://pypi.lcsb.uni.lu/simple/ - pip install -r requirements-dev.txt --default-timeout=180 -i https://pypi.lcsb.uni.lu/simple/
test: test_postgres:
services: services:
- postgres:latest - postgres:latest
script: script:
...@@ -20,3 +20,11 @@ test: ...@@ -20,3 +20,11 @@ test:
- python manage.py makemigrations web && python manage.py migrate - python manage.py makemigrations web && python manage.py migrate
- coverage run --source web manage.py test -v3 - coverage run --source web manage.py test -v3
- coverage report -m --omit="*/test*,*/migrations*,*debug_utils*" - coverage report -m --omit="*/test*,*/migrations*,*debug_utils*"
test_sqlite:
script:
- cp "local_settings_ci_sqlite.py" "smash/smash/local_settings.py"
- cd smash
- python manage.py makemigrations web && python manage.py migrate
- coverage run --source web manage.py test -v3
- coverage report -m --omit="*/test*,*/migrations*,*debug_utils*"
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'Paste long random string here' # Insert long random string
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
WSGI_APPLICATION = 'smash.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
}
STATIC_ROOT = '/tmp/static' # Warning! `/tmp` directory can be flushed in any moment; use a persistent one; e.g. ~/tmp/static
MEDIA_ROOT = '/tmp/media' # Warning! `/tmp` directory can be flushed in any moment; use a persistent one, e.g. ~/tmp/media
LOGIN_PAGE_BACKGROUND_IMAGE = 'background.jpg' # Path to a static file containing background image, used in login.html
ALLOWED_HOSTS = ["127.0.0.1", "localhost"]
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
NEXMO_API_KEY = 'API_KEY'
NEXMO_API_SECRET = 'API_SECRET'
NEXMO_DEFAULT_FROM = 'Scheduling' # the sender of the message (phone number or text)
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