Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
a2c72b3c
Commit
a2c72b3c
authored
4 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
gitlab ci job for sqlite tests
parent
2a20f7e3
No related branches found
No related tags found
1 merge request
!263
Resolve "support or sqlite"
Pipeline
#33587
failed
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-1
9 additions, 1 deletion
.gitlab-ci.yml
local_settings_ci_sqlite.py
+29
-0
29 additions, 0 deletions
local_settings_ci_sqlite.py
with
38 additions
and
1 deletion
.gitlab-ci.yml
+
9
−
1
View file @
a2c72b3c
...
@@ -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*"
This diff is collapsed.
Click to expand it.
local_settings_ci_sqlite.py
0 → 100644
+
29
−
0
View file @
a2c72b3c
# 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)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment