mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-05-12 04:07:19 +00:00
refactor to baseline on pluggable oci collection/distribution Co-authored-by: Josh Wolf <josh@joshwolf.dev>
36 lines
548 B
Makefile
36 lines
548 B
Makefile
SHELL:=/bin/bash
|
|
GO_BUILD_ENV=GOOS=linux GOARCH=amd64
|
|
GO_FILES=$(shell go list ./... | grep -v /vendor/)
|
|
|
|
BUILD_VERSION=$(shell cat VERSION)
|
|
BUILD_TAG=$(BUILD_VERSION)
|
|
|
|
.SILENT:
|
|
|
|
all: fmt vet install test
|
|
|
|
build:
|
|
mkdir bin;\
|
|
$(GO_BUILD_ENV) go build -o bin ./cmd/...;\
|
|
|
|
build-all: fmt vet
|
|
goreleaser build --rm-dist --snapshot
|
|
|
|
install:
|
|
$(GO_BUILD_ENV) go install
|
|
|
|
vet:
|
|
go vet $(GO_FILES)
|
|
|
|
fmt:
|
|
go fmt $(GO_FILES)
|
|
|
|
test:
|
|
go test $(GO_FILES) -cover
|
|
|
|
integration_test:
|
|
go test -tags=integration $(GO_FILES)
|
|
|
|
clean:
|
|
rm -rf bin 2> /dev/null
|