mirror of https://github.com/sipwise/repoapi.git
Using https://django-appconf.readthedocs.io/en/latest/ helps us to keep configs per application Change-Id: I6dbac01d56ce1ea71d611e0e98a74a0875fe747cchanges/17/38717/3
parent
e9e2833f35
commit
3237f930fd
@ -0,0 +1,185 @@
|
||||
# Copyright (C) 2020 The Sipwise Team - http://sipwise.com
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation, either version 3 of the License, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
from django.conf import settings # noqa
|
||||
from appconf import AppConf
|
||||
|
||||
|
||||
class ReleaseDashboardConf(AppConf):
|
||||
FILTER_TAGS = r"^refs/tags/(.+)$"
|
||||
FILTER_BRANCHES = r"^refs/heads/(.+)$"
|
||||
FILTER_MRXX = r"^mr[0-9]+\.[0-9]+$"
|
||||
FILTER_MRXXX = r"^mr[0-9]+\.[0-9]+\.[0-9]+$"
|
||||
DEBIAN_RELEASES = (
|
||||
"auto",
|
||||
"buster",
|
||||
"stretch",
|
||||
"jessie",
|
||||
"wheezy",
|
||||
"squeeze",
|
||||
)
|
||||
BUILD_DEPS = (
|
||||
"check-tools",
|
||||
"data-hal",
|
||||
"libswrate",
|
||||
"sipwise-base",
|
||||
"mediaproxy-ng",
|
||||
"ngcp-schema",
|
||||
"rtpengine",
|
||||
"libtcap",
|
||||
"libinewrate",
|
||||
)
|
||||
PROJECTS = (
|
||||
"acc-cdi",
|
||||
"asterisk",
|
||||
"asterisk-sounds",
|
||||
"asterisk-voicemail",
|
||||
"backup-tools",
|
||||
"bulk-processor",
|
||||
"bulk-processor-projects",
|
||||
"bootenv",
|
||||
"captagent",
|
||||
"cdr-exporter",
|
||||
"cfg-schema",
|
||||
"check-tools",
|
||||
"cleanup-tools",
|
||||
"cloudpbx-devices",
|
||||
"cloudpbx-sources",
|
||||
"collectd-mod-redis",
|
||||
"comx",
|
||||
"comx-application",
|
||||
"comx-fileshare-service",
|
||||
"comx-sip",
|
||||
"comx-xmpp",
|
||||
"csta-testsuite",
|
||||
"data-hal",
|
||||
"db-schema",
|
||||
"dhtest",
|
||||
"diva-drivers",
|
||||
"deployment-iso",
|
||||
"documentation",
|
||||
"faxserver",
|
||||
"glusterfs-config",
|
||||
"heartbeat",
|
||||
"hylafaxplus",
|
||||
"iaxmodem",
|
||||
"installer",
|
||||
"janus-admin",
|
||||
"janus-client",
|
||||
"kamailio",
|
||||
"kamailio-config-tests",
|
||||
"keyring",
|
||||
"kibana",
|
||||
"klish",
|
||||
"libhsclient-c-wrapper",
|
||||
"libinewrate",
|
||||
"libswrate",
|
||||
"libtcap",
|
||||
"license-client",
|
||||
"lnpd",
|
||||
"lua-ngcp-kamailio",
|
||||
"mediaproxy-ng",
|
||||
"mediaproxy-redis",
|
||||
"mediator",
|
||||
"megacli",
|
||||
"metapackages",
|
||||
"monitoring-tools",
|
||||
"netscript",
|
||||
"ngcp-api-tools",
|
||||
"ngcp-csc",
|
||||
"ngcp-csc-ui",
|
||||
"ngcp-exporter",
|
||||
"ngcp-fauditd",
|
||||
"ngcp-inventory",
|
||||
"ngcp-klish-config",
|
||||
"ngcp-logfs",
|
||||
"ngcp-panel",
|
||||
"ngcp-prompts",
|
||||
"ngcp-rtcengine",
|
||||
"ngcp-schema",
|
||||
"ngcp-status",
|
||||
"ngcp-sudo-plugin",
|
||||
"ngcp-support",
|
||||
"ngcp-user-framework",
|
||||
"ngcpcfg",
|
||||
"ngcpcfg-api",
|
||||
"ngcpcfg-ha",
|
||||
"ngrep-sip",
|
||||
"ossbss",
|
||||
"prosody",
|
||||
"pushd",
|
||||
"rate-o-mat",
|
||||
"reminder",
|
||||
"rtpengine",
|
||||
"rtpengine-redis",
|
||||
"sems",
|
||||
"sems-app",
|
||||
"sems-ha",
|
||||
"sems-modules",
|
||||
"sems-pbx",
|
||||
"sems-prompts",
|
||||
"sipsak",
|
||||
"sipwise-base",
|
||||
"snmp-agent",
|
||||
"system-tests",
|
||||
"system-tools",
|
||||
"templates",
|
||||
"upgrade",
|
||||
"vmnotify",
|
||||
"voisniff-ng",
|
||||
"websocket",
|
||||
"www_admin",
|
||||
"www_csc",
|
||||
)
|
||||
ABANDONED = (
|
||||
"asterisk",
|
||||
"asterisk-sounds",
|
||||
"cloudpbx-devices",
|
||||
"collectd-mod-redis",
|
||||
"comx",
|
||||
"comx-sip",
|
||||
"comx-xmpp",
|
||||
"diva-drivers",
|
||||
"hylafaxplus",
|
||||
"iaxmodem",
|
||||
"mediaproxy-ng",
|
||||
"mediaproxy-redis",
|
||||
"rtpengine-redis",
|
||||
"ossbss",
|
||||
"sems-prompts",
|
||||
"sipsak",
|
||||
"www_admin",
|
||||
"www_csc",
|
||||
)
|
||||
DOCKER_PROJECTS = (
|
||||
"comx-fileshare-service",
|
||||
"data-hal",
|
||||
"documentation",
|
||||
"janus-admin",
|
||||
"janus-client",
|
||||
"kamailio-config-tests",
|
||||
"libswrate",
|
||||
"libtcap",
|
||||
"lua-ngcp-kamailio",
|
||||
"ngcp-csc",
|
||||
"ngcp-panel",
|
||||
"ngcp-rtcengine",
|
||||
"ngcpcfg",
|
||||
"rate-o-mat",
|
||||
"snmp-agent",
|
||||
"system-tools",
|
||||
)
|
||||
|
||||
class Meta:
|
||||
prefix = "release_dashboard"
|
||||
@ -1,24 +1,21 @@
|
||||
# Copyright (C) 2017 The Sipwise Team - http://sipwise.com
|
||||
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation, either version 3 of the License, or (at your option)
|
||||
# any later version.
|
||||
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
from ..conf import settings
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
rd_settings = settings.RELEASE_DASHBOARD_SETTINGS
|
||||
trunk_projects = sorted(set(rd_settings['projects']) -
|
||||
set(rd_settings['abandoned']) -
|
||||
set(rd_settings['build_deps']))
|
||||
trunk_build_deps = sorted(set(rd_settings['build_deps']) -
|
||||
set(rd_settings['abandoned']))
|
||||
docker_projects = rd_settings['docker_projects']
|
||||
projects = set(settings.RELEASE_DASHBOARD_PROJECTS)
|
||||
abandoned = set(settings.RELEASE_DASHBOARD_ABANDONED)
|
||||
build_deps = set(settings.RELEASE_DASHBOARD_BUILD_DEPS)
|
||||
trunk_projects = sorted(projects - abandoned - build_deps)
|
||||
trunk_build_deps = sorted(build_deps - abandoned)
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
# Copyright (C) 2015 The Sipwise Team - http://sipwise.com
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation, either version 3 of the License, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
class TestReleaseDashboardConf(TestCase):
|
||||
def test_django_settings(self):
|
||||
from django.conf import settings
|
||||
|
||||
self.assertIsNotNone(settings.RELEASE_DASHBOARD_DEBIAN_RELEASES)
|
||||
|
||||
def test_release_dashboard_settings(self):
|
||||
from release_dashboard.conf import settings
|
||||
|
||||
self.assertIsNotNone(settings.RELEASE_DASHBOARD_DEBIAN_RELEASES)
|
||||
Loading…
Reference in new issue