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
2e504e47
Commit
2e504e47
authored
7 months ago
by
Carlos Vega
Browse files
Options
Downloads
Patches
Plain Diff
added gitlab CI job for testing mariadb
parent
5be8c5fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!462
Redcap/generic test instance
,
!461
Db/mariadb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+2
-0
2 additions, 0 deletions
.dockerignore
.gitlab-ci.yml
+14
-0
14 additions, 0 deletions
.gitlab-ci.yml
local_settings_ci_mariadb.py
+32
-0
32 additions, 0 deletions
local_settings_ci_mariadb.py
with
48 additions
and
0 deletions
.dockerignore
+
2
−
0
View file @
2e504e47
env*
smash/*.txt
smash/*.sqlite3
**/*.pyc
.vscode/*
Dockerfile
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
14
−
0
View file @
2e504e47
...
...
@@ -7,6 +7,9 @@ variables:
POSTGRES_DB
:
smash
POSTGRES_USER
:
runner
POSTGRES_PASSWORD
:
password
MARIADB_USER
:
runner
MARIADB_PASSWORD
:
password
MARIADB_DATABASE
:
smash
gemnasium-python-dependency_scanning
:
before_script
:
...
...
@@ -44,6 +47,17 @@ test_postgres:
-
coverage run --source web manage.py test -v3
-
coverage report -m --omit="*/test*,*/migrations*,*debug_utils*"
test_mariadb
:
<<
:
*test_definition
services
:
-
mariadb:10.6-ubi
script
:
-
cp "local_settings_ci_mariadb.py" "smash/smash/local_settings.py"
-
cd smash
-
coverage run --source web manage.py test -v3
-
coverage report -m --omit="*/test*,*/migrations*,*debug_utils*"
test_sqlite
:
<<
:
*test_definition
script
:
...
...
This diff is collapsed.
Click to expand it.
local_settings_ci_mariadb.py
0 → 100644
+
32
−
0
View file @
2e504e47
# 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
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
DATABASES
=
{
"
default
"
:
{
"
ENGINE
"
:
"
django.db.backends.mysql
"
,
"
NAME
"
:
"
smaschdb
"
,
"
USER
"
:
"
runner
"
,
"
PASSWORD
"
:
"
password
"
,
"
HOST
"
:
"
mariadb
"
,
"
PORT
"
:
""
,
}
}
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
)
UPLOAD_ROOT
=
"
/tmp/upload
"
ETL_ROOT
=
"
/tmp/etl
"
STATICFILES_STORAGE
=
"
django.contrib.staticfiles.storage.StaticFilesStorage
"
ALLOWED_HOSTS
=
[
"
127.0.0.1
"
,
"
localhost
"
]
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