makefile: Change targets order
Signed-off-by: Jingwen Peng <pengsrc@yunify.com>
This commit is contained in:
parent
9818466f5d
commit
621dca81ed
12
Makefile
12
Makefile
|
@ -1,6 +1,6 @@
|
|||
SHELL := /bin/bash
|
||||
|
||||
.PHONY: all check vet lint update generate test build unit release clean
|
||||
.PHONY: all check vet lint update generate build unit test release clean
|
||||
|
||||
PREFIX=qingcloud-sdk-go
|
||||
VERSION=$(shell cat version.go | grep "Version\ =" | sed -e s/^.*\ //g | sed -e s/\"//g)
|
||||
|
@ -16,7 +16,6 @@ help:
|
|||
@echo "Please use \`make <target>\` where <target> is one of"
|
||||
@echo " all to check, build, test and release this SDK"
|
||||
@echo " check to vet and lint the SDK"
|
||||
@echo " test to run service test"
|
||||
@echo " build to build the SDK"
|
||||
@echo " unit to run all sort of unit tests except runtime"
|
||||
@echo " unit-test to run unit test"
|
||||
|
@ -24,6 +23,7 @@ help:
|
|||
@echo " unit-coverage to run unit test with coverage"
|
||||
@echo " unit-race to run unit test with race"
|
||||
@echo " unit-runtime to run test with go1.5, go1.6, go 1.7 in docker"
|
||||
@echo " test to run service test"
|
||||
@echo " release to build and release current version"
|
||||
@echo " release-source to pack the source code"
|
||||
@echo " release-headers to build and pack the headers source code for go 1.7"
|
||||
|
@ -46,10 +46,6 @@ lint:
|
|||
if [[ -n $${lint} ]]; then echo "$${lint}"; exit 1; fi
|
||||
@echo "ok"
|
||||
|
||||
test:
|
||||
pushd "./test"; go run *.go; popd
|
||||
@echo "ok"
|
||||
|
||||
build:
|
||||
@echo "build the SDK"
|
||||
GOOS=linux GOARCH=amd64 go build ${PKGS_TO_CHECK}
|
||||
|
@ -146,6 +142,10 @@ unit-runtime-go-1.5:
|
|||
docker rmi "${PREFIX}:go-1.5"
|
||||
@echo "ok"
|
||||
|
||||
test:
|
||||
pushd "./test"; go run *.go; popd
|
||||
@echo "ok"
|
||||
|
||||
release: release-source release-source-with-vendor release-headers release-binary
|
||||
|
||||
release-source:
|
||||
|
|
Loading…
Reference in New Issue