summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2020-03-11 21:20:58 +0200
committerzsdc <taras@vyos.io>2020-03-11 21:22:23 +0200
commitc6627bc05a57645e6af8b9a5a67e452d9f37e487 (patch)
treeb754b3991e5e57a9ae9155819f73fa0cbd4be269 /Makefile
parentca9a4eb26b41c204d1bd3a15586b14a5dde950bb (diff)
parent13e82554728b1cb524438163784e5b955c7c5ed0 (diff)
downloadvyos-cloud-init-c6627bc05a57645e6af8b9a5a67e452d9f37e487.tar.gz
vyos-cloud-init-c6627bc05a57645e6af8b9a5a67e452d9f37e487.zip
Cloud-init: T2117: Updated to 20.1
- Merge 20.1 version from the Canonical repository - Removed unneeded changes in datasources (now only OVF datasource is not equal to upstream's version) - Adapted cc_vyos module to new Cloud-init version - Changed Jenkinsfile to use build scripts, provided by upstream
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