
This commit adds the `cstate-management` StarlingX application. Test Plan: PASS: AIO-SX: check whether the application installs successfully. PASS: AIO-DX: check whether the application installs successfully. PASS: AIO-DX: check whether the application is successfully removed and deleted. PASS: AIO-DX: check whether daemonsets and pods are removed on application removal/deletion. PASS: AIO-DX: check whether the namespace is deleted upon application removal/deletion. PASS: check whether `build-image` runs successfully. PASS: check whether label "app.starlingx.io/component" was applied to "cstate-management" namespace on install. Story: 2011105 Task: 50178 Authored-By: Guilherme Santos <guilherme.santos@windriver.com> Co-Authored-By: Vinicius Lobo <vinicius.rochalobo@windriver.com> Change-Id: Ie99a605a81a1d9ccdabba78be4f020ed549c649d Signed-off-by: Guilherme Santos <guilherme.santos@windriver.com>
34 lines
807 B
Makefile
34 lines
807 B
Makefile
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export APP_NAME = cstate-management
|
|
export PYBUILD_NAME = k8sapp-cstate-management
|
|
|
|
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
|
|
export MAJOR = $(shell cat /etc/build.info | grep SW_VERSION | cut -d'"' -f2)
|
|
export MINOR = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
|
|
export PBR_VERSION = $(MAJOR).$(MINOR)
|
|
|
|
export ROOT = $(CURDIR)/debian/tmp
|
|
export SKIP_PIP_INSTALL = 1
|
|
|
|
%:
|
|
dh $@ --with=python3 --buildsystem=pybuild
|
|
|
|
override_dh_auto_install:
|
|
env | sort
|
|
|
|
python3 setup.py install \
|
|
--install-layout=deb \
|
|
--root $(ROOT)
|
|
|
|
python3 setup.py bdist_wheel \
|
|
--universal \
|
|
-d $(ROOT)/plugins
|
|
|
|
override_dh_python3:
|
|
dh_python3 --shebang=/usr/bin/python3
|
|
|
|
override_dh_auto_test:
|
|
PYTHONDIR=$(CURDIR) stestr run
|