# HamPack development tasks # make lint - shellcheck every script # make test - run the bats tests in tests/ # make check-packages - check every package and Flatpak in packages.conf can # still be installed (needs the network; run `pacman -Sy` first) # make hooks - run `make lint test` before each commit SCRIPTS := install.sh update.sh lib.sh install-binaries.sh install-compiled.sh \ install-flatpaks.sh install-windows-apps.sh patch-potacat.sh hampackcheck hampackremove \ smoketest/setup smoketest/health smoketest/lib.sh $(wildcard smoketest/scenarios/*.sh) .PHONY: check lint test check-packages hooks check: lint test lint: shellcheck -x $(SCRIPTS) test: bats tests/ check-packages: ./hampackcheck packages hooks: git config core.hooksPath .githooks