Skip to content

Commit d649aa3

Browse files
author
Aaron Schlesinger
committed
fix(Makefile): dockerize the unit test command
note that DEV_ENV_PREFIX_CGO_ENABLED was added because —race requires cgo to be enabled
1 parent ea76abb commit d649aa3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ endif
1313
DEV_ENV_IMAGE := quay.io/deis/go-dev:0.9.0
1414
DEV_ENV_WORK_DIR := /go/src/${repo_path}
1515
DEV_ENV_PREFIX := docker run --rm -e GO15VENDOREXPERIMENT=1 -e CGO_ENABLED=0 -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
16+
DEV_ENV_PREFIX_CGO_ENABLED := docker run --rm -e GO15VENDOREXPERIMENT=1 -e CGO_ENABLED=1 -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
1617
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}
1718
DIST_DIR := _dist
1819

@@ -96,4 +97,4 @@ test-style:
9697
done
9798

9899
test-unit:
99-
$(GOTEST) $(shell glide novendor)
100+
${DEV_ENV_PREFIX_CGO_ENABLED} ${DEV_ENV_IMAGE} ${GOTEST} $$(glide nv)

0 commit comments

Comments
 (0)