Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 914 Bytes
SHELL := /bin/bash
GIT_SHA = $(shell git log --pretty=oneline | head -n1 | cut -c1-8)
PACKAGE = "salt_config-$(GIT_SHA).tgz"
SHASUM = $(shell test `uname` == 'Darwin' && echo shasum -a 256 || echo sha256sum)
all: formulas
@mkdir -p dist
@rsync -a ./salt/ ./dist/salt/ --delete
@rsync -a ./formulas/ ./dist/formulas/ --delete
@rsync -a ./pillar/ ./dist/pillar/ --delete
@echo $(GIT_SHA) > ./dist/SHA
@find ./dist -type f | sort | xargs $(SHASUM) | sed "s;./dist;/srv;" > MANIFEST
@$(SHASUM) MANIFEST | cut -d\ -f1 > MANIFEST.sha256
@mv MANIFEST* ./dist/
@echo "Salt is ready in ./dist. Enjoy!"
lint:
@tests/lint.sh
docker:
@tests/docker.sh
test: clean all lint
@true
package: clean all
@tar czf $(PACKAGE) ./dist/
@mv -f $(PACKAGE) ./dist
@echo "Package ./dist/$(PACKAGE) is ready."
clean::
@echo -n "Removing ./dist directory..."
@rm -rf dist
@echo "DONE"
coverage:
@tests/coverage.sh
You can’t perform that action at this time.