summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 07dd57aa..315e6b45 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,12 @@ pyflakes:
pyflakes3:
@$(CWD)/tools/run-pyflakes3
+unittest: clean_pyc
+ nosetests $(noseopts) tests/unittests cloudinit
+
+unittest3: clean_pyc
+ nosetests3 $(noseopts) tests/unittests cloudinit
+
ci-deps-ubuntu:
@$(PYVER) $(CWD)/tools/read-dependencies --distro ubuntu --test-distro
@@ -61,6 +67,8 @@ pip-test-requirements:
@echo "Installing cloud-init test dependencies..."
$(PIP_INSTALL) -r "$@.txt" -q
+test: $(unittests)
+
check_version:
@if [ "$(READ_VERSION)" != "$(CODE_VERSION)" ]; then \
echo "Error: read-version version '$(READ_VERSION)'" \
@@ -72,9 +80,10 @@ config/cloud.cfg:
clean_pyc:
@find . -type f -name "*.pyc" -delete
+ @find . -type d -name __pycache__ -delete
clean: clean_pyc
- rm -rf /var/log/cloud-init.log /var/lib/cloud/
+ rm -rf doc/rtd_html .tox .coverage
yaml:
@$(PYVER) $(CWD)/tools/validate-yaml.py $(YAML_FILES)
@@ -98,7 +107,9 @@ deb-src:
echo sudo apt-get install devscripts; exit 1; }
$(PYVER) ./packages/bddeb -S -d
+doc:
+ tox -e doc
.PHONY: test pyflakes pyflakes3 clean pep8 rpm srpm deb deb-src yaml
.PHONY: check_version pip-test-requirements pip-requirements clean_pyc
-.PHONY: unittest unittest3 style-check
+.PHONY: unittest unittest3 style-check doc