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