-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 774 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# the filepath to this repository, relative to $GOPATH/src
REPO_PATH := github.com/drycc/workflow-cli
DEV_ENV_IMAGE := ${DEV_REGISTRY}/drycc/go-dev
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
DIST_DIR ?= _dist
DEV_ENV_CMD := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} ${DEV_ENV_IMAGE}
define build-install-script
sed "s|{{DRYCC-CLIENT-VERSION}}|${GIT_TAG}|g" "install.tmpl" > "${DIST_DIR}/install-drycc.sh"
endef
bootstrap:
${DEV_ENV_CMD} go mod vendor
# This is supposed to be run within a docker container
build:
${DEV_ENV_CMD} scripts/build ${VERSION}
@$(call build-install-script,${VERSION})
test-style:
${DEV_ENV_CMD} lint
test-cover:
${DEV_ENV_CMD} test-cover.sh
test: build test-style test-cover
${DEV_ENV_CMD} go test ./...