X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Finfluxdb.git;a=blobdiff_plain;f=Makefile;h=fb690465f08d6cde607cd4e6717226fafc7a8715;hp=1043fbe02e3ba62e0a30f78a350092c105279f76;hb=b9db4f76a72e5bd447997d3d943b79f613a7636b;hpb=1523e42e33b3edb1cc56775945b61279a74e8a0d diff --git a/Makefile b/Makefile index 1043fbe..fb69046 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,11 @@ else JOBS := 1 endif +ifeq (,$(wildcard ./.kitchen.openstack.yml)) +KITCHEN_LOCAL_YAML?=.kitchen.openstack.yml +else KITCHEN_LOCAL_YAML?=.kitchen.yml +endif KITCHEN_OPTS?="--concurrency=$(JOBS)" KITCHEN_OPTS_CREATE?="" KITCHEN_OPTS_CONVERGE?="" @@ -27,6 +31,7 @@ KITCHEN_OPTS_TEST?="" all: @echo "make install - Install into DESTDIR" + @echo "make lint - Run lint tests" @echo "make test - Run tests" @echo "make kitchen - Run Kitchen CI tests (create, converge, verify)" @echo "make clean - Cleanup after tests run" @@ -45,6 +50,9 @@ install: [ -d $(DESTDIR)/$(RECLASSDIR)/service/$(FORMULANAME) ] || mkdir -p $(DESTDIR)/$(RECLASSDIR)/service/$(FORMULANAME) cp -a metadata/service/* $(DESTDIR)/$(RECLASSDIR)/service/$(FORMULANAME) +lint: + [ ! -d tests ] || (cd tests; ./run_tests.sh lint) + test: [ ! -d tests ] || (cd tests; ./run_tests.sh) @@ -65,7 +73,7 @@ release-minor: check-changes [ ! -f debian/changelog ] || dch -v $(VERSION_MAJOR).$(NEW_MINOR_VERSION) -m --force-distribution -D `dpkg-parsechangelog -S Distribution` "New version" make genchangelog-$(VERSION_MAJOR).$(NEW_MINOR_VERSION) (git add -u; git commit -m "Version $(VERSION_MAJOR).$(NEW_MINOR_VERSION)") - git tag -s -m $(NEW_MAJOR_VERSION) $(VERSION_MAJOR).$(NEW_MINOR_VERSION) + git tag -s -m $(VERSION_MAJOR).$(NEW_MINOR_VERSION) $(VERSION_MAJOR).$(NEW_MINOR_VERSION) check-changes: @git log --pretty=oneline --decorate $(VERSION)..HEAD | grep -Eqc '.*' || (echo "No new changes since version $(VERSION)"; exit 1)