X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=Makefile;h=fa2db0bbd326f4a4f3da2dfc9e3ef8b531460a41;hb=8a3f6af248e28ea7efc1bf89751a597d28834942;hp=5549539245c535c6d0e92d7022ea531622a83e3a;hpb=825f928d824f728088606bcbf112d30d7a76f627;p=safcm%2Fsafcm.git diff --git a/Makefile b/Makefile index 5549539..fa2db0b 100644 --- a/Makefile +++ b/Makefile @@ -12,14 +12,20 @@ safcm: go fmt ./... cd cmd/safcm-remote && ./build.sh go build $(GOFLAGS) -ldflags $(LDFLAGS) ruderich.org/simon/safcm/cmd/safcm - @# For proper permissions after initial clone with a strict umask - cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null test: + @# For proper permissions after initial clone with a strict umask + cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null + @# ./cmd/safcm/testdata/ssh/prepare.sh go vet ./... go test $(GOFLAGS) ./... +lint: + shellcheck ci/run + shellcheck cmd/safcm-remote/build.sh + shellcheck cmd/safcm/testdata/ssh/prepare.sh + clean: rm -rf remote/helpers/ rm -f safcm @@ -29,5 +35,6 @@ clean: rm -f cmd/safcm/testdata/ssh/ssh/known_hosts rm -f cmd/safcm/testdata/ssh/sshd/ssh_host_key rm -f cmd/safcm/testdata/ssh/sshd/ssh_host_key.pub + rm -rf cmd/safcm/testdata/ssh/project/no-changes.example.org/ .PHONY: all test clean safcm