|
|
|
|
|
|
|
|
@echo "make release-major - Generate new major release" |
|
|
@echo "make release-major - Generate new major release" |
|
|
@echo "make release-minor - Generate new minor release" |
|
|
@echo "make release-minor - Generate new minor release" |
|
|
@echo "make changelog - Show changes since last release" |
|
|
@echo "make changelog - Show changes since last release" |
|
|
@echo "make test-model-validate - Run salt jsonschema validation" |
|
|
|
|
|
|
|
|
|
|
|
install: |
|
|
install: |
|
|
# Formula |
|
|
# Formula |
|
|
|
|
|
|
|
|
test: |
|
|
test: |
|
|
[ ! -d tests ] || (cd tests; ./run_tests.sh) |
|
|
[ ! -d tests ] || (cd tests; ./run_tests.sh) |
|
|
|
|
|
|
|
|
test-model-validate: |
|
|
|
|
|
# TODO make it actually fail |
|
|
|
|
|
[ ! -d $(FORMULANAME)/schemas/ ] || (cd tests; ./run_tests.sh model-validate) |
|
|
|
|
|
|
|
|
|
|
|
release-major: check-changes |
|
|
release-major: check-changes |
|
|
@echo "Current version is $(VERSION), new version is $(NEW_MAJOR_VERSION)" |
|
|
@echo "Current version is $(VERSION), new version is $(NEW_MAJOR_VERSION)" |
|
|
@[ $(VERSION_MAJOR) != $(NEW_MAJOR_VERSION) ] || (echo "Major version $(NEW_MAJOR_VERSION) already released, nothing to do. Do you want release-minor?" && exit 1) |
|
|
@[ $(VERSION_MAJOR) != $(NEW_MAJOR_VERSION) ] || (echo "Major version $(NEW_MAJOR_VERSION) already released, nothing to do. Do you want release-minor?" && exit 1) |