sha256sum
This commit is contained in:
parent
48800cee35
commit
ef583c159f
@ -11,8 +11,9 @@ tasks:
|
|||||||
- test: |
|
- test: |
|
||||||
make -C undocker coverage.html
|
make -C undocker coverage.html
|
||||||
- lint: |
|
- lint: |
|
||||||
make -C undocker -j$(nproc) -O lint
|
make -C undocker -O -j$(nproc) lint
|
||||||
- all: |
|
- binaries: |
|
||||||
make -C undocker -j$(nproc) -O all
|
make -C undocker -O -j$(nproc) sha256sum.txt
|
||||||
|
cat undocker/sha256sum.txt
|
||||||
artifacts:
|
artifacts:
|
||||||
- undocker/coverage.html
|
- undocker/coverage.html
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/undocker
|
/undocker-*
|
||||||
coverage.html
|
coverage.html
|
||||||
|
sha256sum.txt*
|
||||||
|
12
Makefile
12
Makefile
@ -8,7 +8,7 @@ GOOSARCHS = linux/amd64 \
|
|||||||
windows/amd64/.exe
|
windows/amd64/.exe
|
||||||
|
|
||||||
define undockertarget
|
define undockertarget
|
||||||
TARGETS += undocker-$(1)-$(2)$(firstword $(3))
|
UNDOCKERS += undocker-$(1)-$(2)$(firstword $(3))
|
||||||
undocker-$(1)-$(2)$(firstword $(3)): $(GODEPS)
|
undocker-$(1)-$(2)$(firstword $(3)): $(GODEPS)
|
||||||
CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -o $$@
|
CGO_ENABLED=0 GOOS=$(1) GOARCH=$(2) go build -o $$@
|
||||||
endef
|
endef
|
||||||
@ -17,7 +17,7 @@ $(foreach goosarch,$(GOOSARCHS),\
|
|||||||
$(eval $(call undockertarget,$(word 1,$(subst /, ,$(goosarch))),$(word 2,$(subst /, ,$(goosarch))),$(word 3,$(subst /, ,$(goosarch))))))
|
$(eval $(call undockertarget,$(word 1,$(subst /, ,$(goosarch))),$(word 2,$(subst /, ,$(goosarch))),$(word 3,$(subst /, ,$(goosarch))))))
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGETS) coverage.html
|
all: $(UNDOCKERS) coverage.html
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@ -41,6 +41,12 @@ coverage.out: $(GODEPS)
|
|||||||
coverage.html: coverage.out
|
coverage.html: coverage.out
|
||||||
go tool cover -html=$< -o $@
|
go tool cover -html=$< -o $@
|
||||||
|
|
||||||
|
sha256sum.txt: $(UNDOCKERS)
|
||||||
|
sha256sum $(UNDOCKERS) > $@
|
||||||
|
|
||||||
|
sha256sum.txt.asc: sha256sum.txt
|
||||||
|
gpg --clearsign $<
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f coverage.html $(TARGETS)
|
rm -f $(UNDOCKERS) coverage.html sha256sum.txt sha256sum.txt.asc
|
||||||
|
Loading…
Reference in New Issue
Block a user