Add lint and unit targets
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
This commit is contained in:
parent
02ff797fbb
commit
66c3c7a419
12
Makefile
12
Makefile
|
@ -1,6 +1,7 @@
|
||||||
#
|
#
|
||||||
# Makefile for subiquity
|
# Makefile for subiquity
|
||||||
#
|
#
|
||||||
|
PYTHONSRC=subiquity
|
||||||
STREAM=daily
|
STREAM=daily
|
||||||
RELEASE=wily
|
RELEASE=wily
|
||||||
ARCH=amd64
|
ARCH=amd64
|
||||||
|
@ -10,7 +11,16 @@ INSTALLER_RESOURCES += $(shell find installer/resources -type f)
|
||||||
|
|
||||||
|
|
||||||
ui-view:
|
ui-view:
|
||||||
(PYTHONPATH=$(shell pwd) bin/subiquity)
|
(PYTHONPATH=$(shell pwd) bin/$(PYTHONSRC))
|
||||||
|
|
||||||
|
lint:
|
||||||
|
echo "Running flake8 lint tests..."
|
||||||
|
flake8 bin/$(PYTHONSRC) --ignore=F403
|
||||||
|
flake8 --exclude $(PYTHONSRC)/tests/ $(PYTHONSRC) --ignore=F403
|
||||||
|
|
||||||
|
unit:
|
||||||
|
echo "Running unit tests..."
|
||||||
|
python3 -m "nose" -v --nologcapture --with-coverage $(PYTHONSRC)/tests/
|
||||||
|
|
||||||
installer/$(INSTALLIMG): installer/geninstaller installer/runinstaller $(INSTALLER_RESOURCES)
|
installer/$(INSTALLIMG): installer/geninstaller installer/runinstaller $(INSTALLER_RESOURCES)
|
||||||
(cd installer && ./geninstaller -v -r $(RELEASE) -a $(ARCH) -s $(STREAM))
|
(cd installer && ./geninstaller -v -r $(RELEASE) -a $(ARCH) -s $(STREAM))
|
||||||
|
|
Loading…
Reference in New Issue