kompose/Makefile
Tomas Kral 8bb89876cf
Clean up scripts/validate-*. Add vet,gofmt,lint tests.
Travis now runs `make validate` as first test.
Make validate includes all validate tests (go vet, gofmt)
2016-11-22 13:02:13 +01:00

40 lines
580 B
Makefile

.PHONY: all
KOMPOSE_ENVS := \
-e OS_PLATFORM_ARG \
-e OS_ARCH_ARG \
-e TESTDIRS \
-e TESTFLAGS \
-e TESTVERBOSE
BIND_DIR := bundles
default: binary
all:
CGO_ENABLED=1 ./script/make.sh
binary:
CGO_ENABLED=1 ./script/make.sh binary
binary-cross:
# CGO_ENABLED=1 ./script/make.sh binary-cross
./script/make.sh binary-cross
clean:
./script/make.sh clean
test-unit:
./script/make.sh test-unit
test-cmd:
./script/make.sh test-cmd
validate: gofmt vet
vet:
./script/make.sh validate-vet
lint:
./script/make.sh validate-lint
gofmt:
./script/make.sh validate-gofmt