test: combine "compile_pass" into "build_pass"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee
2018-04-10 16:43:01 -07:00
parent 01678b3790
commit eabb40f0ae
2 changed files with 5 additions and 8 deletions

View File

@@ -118,7 +118,7 @@ compile-setup-gopath-with-docker-test:
#
# Local machine:
# TEST_OPTS="PASSES='fmt'" make test
# TEST_OPTS="PASSES='fmt bom dep compile build unit'" make test
# TEST_OPTS="PASSES='fmt bom dep build unit'" make test
# TEST_OPTS="PASSES='build unit release integration_e2e functional'" make test
# TEST_OPTS="PASSES='build grpcproxy'" make test
#
@@ -128,7 +128,7 @@ compile-setup-gopath-with-docker-test:
# TEST_OPTS="VERBOSE=2 PASSES='unit'" make docker-test
#
# Travis CI (test with docker):
# TEST_OPTS="PASSES='fmt bom dep compile build unit'" make docker-test
# TEST_OPTS="PASSES='fmt bom dep build unit'" make docker-test
#
# Semaphore CI (test with docker):
# TEST_OPTS="PASSES='build unit release integration_e2e functional'" make docker-test

9
test
View File

@@ -41,7 +41,7 @@ if [[ "${PASSES}" == *"functional"* ]]; then
fi
if [ -z "$PASSES" ]; then
PASSES="fmt bom dep compile build unit"
PASSES="fmt bom dep build unit"
fi
USERPKG=${PKG:-}
@@ -619,14 +619,11 @@ function build_cov_pass {
go test -tags cov -c -covermode=set -coverpkg="$PKGS_COMMA" -o "${out}/etcdctl_test" "${REPO_PATH}/etcdctl"
}
function compile_pass {
echo "Checking build..."
GO_BUILD_FLAGS="-a -v" tools_build
}
# fail fast on static tests
function build_pass {
echo "Checking build..."
GO_BUILD_FLAGS="-a -v" etcd_build
GO_BUILD_FLAGS="-a -v" tools_build
}
for pass in $PASSES; do