-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
36 lines (32 loc) · 1022 Bytes
/
Makefile
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
30
31
32
33
34
35
36
# Variables
VERBOSE ?= false
RETRY_ATTEMPTS ?= 10
RETRY_SECONDS ?= 30
all: test snyk-test
.PHONY: test
test:
echo "=== newrelic-integration-e2e === [ test ]: running unit tests..."
@go test -race ./... -count=1
snyk-test:
@docker run --rm -t \
--name "newrelic-integration-e2e-snyk-test" \
-v $(CURDIR):/go/src/github.com/newrelic/newrelic-integration-e2e-action \
-w /go/src/github.com/newrelic/newrelic-integration-e2e-action \
-e SNYK_TOKEN \
-e GO111MODULE=auto \
snyk/snyk:golang snyk test --severity-threshold=high
.PHONY: run
run:
@printf "=== newrelic-integration-e2e === [ run / $* ]: running the binary \n"
@go run main.go \
--commit_sha=$(COMMIT_SHA) \
--retry_attempts=$(RETRY_ATTEMPTS) \
--retry_seconds=$(RETRY_SECONDS) \
--account_id=$(ACCOUNT_ID) \
--api_key=$(API_KEY) \
--license_key=$(LICENSE_KEY) \
--spec_path=$(ROOT_DIR)/$(SPEC_PATH) \
--verbose_mode=$(VERBOSE) \
--agent_enabled=$(AGENT_ENABLED) \
--region=$(REGION) \
--scenario_tag=$(SCENARIO_TAG)