Commit facb5d83 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[settings][ci] Use new helper method to setup prefix and db

parent 2fa4453c
Pipeline #39736 passed with stage
in 14 minutes and 1 second
......@@ -26,8 +26,23 @@
###############################################################################
# Django settings for tests on the CI server
import os
from .test import * # noqa
from . import get_test_db_path
from . import get_test_prefix_path
RUNNING_ON_CI = True
DATABASES["default"]["OPTIONS"]["timeout"] = 60 # noqa
DATABASES["default"]["NAME"] = get_test_db_path(RUNNING_ON_CI) # noqa
DATABASES["default"]["TEST"] = {"NAME": DATABASES["default"]["NAME"]} # noqa
PREFIX = os.environ.get("BEAT_TEST_PREFIX", get_test_prefix_path(RUNNING_ON_CI))
ALGORITHMS_ROOT = os.path.join(PREFIX, "algorithms")
PLOTTERS_ROOT = os.path.join(PREFIX, "plotters")
LIBRARIES_ROOT = os.path.join(PREFIX, "libraries")
DATABASES_ROOT = os.path.join(PREFIX, "databases")
DATAFORMATS_ROOT = os.path.join(PREFIX, "dataformats")
TOOLCHAINS_ROOT = os.path.join(PREFIX, "toolchains")
EXPERIMENTS_ROOT = os.path.join(PREFIX, "experiments")
CACHE_ROOT = os.path.join(PREFIX, "cache")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment