mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
Chore: Update Makefile to support go workspace (#83549)
This commit is contained in:
parent
42b55aedbc
commit
d7b031f318
@ -366,6 +366,7 @@ trigger:
|
|||||||
- docs/**
|
- docs/**
|
||||||
- '*.md'
|
- '*.md'
|
||||||
include:
|
include:
|
||||||
|
- Makefile
|
||||||
- pkg/**
|
- pkg/**
|
||||||
- packaging/**
|
- packaging/**
|
||||||
- .drone.yml
|
- .drone.yml
|
||||||
@ -462,6 +463,7 @@ trigger:
|
|||||||
- docs/**
|
- docs/**
|
||||||
- '*.md'
|
- '*.md'
|
||||||
include:
|
include:
|
||||||
|
- Makefile
|
||||||
- pkg/**
|
- pkg/**
|
||||||
- packaging/**
|
- packaging/**
|
||||||
- .drone.yml
|
- .drone.yml
|
||||||
@ -4924,6 +4926,6 @@ kind: secret
|
|||||||
name: gcr_credentials
|
name: gcr_credentials
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 959c920d1ce1f36b68e93dd4b4de180dd64ae58c28b9eb52ee1d343f991f5cfd
|
hmac: 38be1b6248aae943e74ffd05c822379dc6ce1d1f08f681316d26be7740470a37
|
||||||
|
|
||||||
...
|
...
|
||||||
|
5
Makefile
5
Makefile
@ -10,7 +10,7 @@ include .bingo/Variables.mk
|
|||||||
.PHONY: all deps-go deps-js deps build-go build-backend build-server build-cli build-js build build-docker-full build-docker-full-ubuntu lint-go golangci-lint test-go test-js gen-ts test run run-frontend clean devenv devenv-down protobuf drone help gen-go gen-cue fix-cue
|
.PHONY: all deps-go deps-js deps build-go build-backend build-server build-cli build-js build build-docker-full build-docker-full-ubuntu lint-go golangci-lint test-go test-js gen-ts test run run-frontend clean devenv devenv-down protobuf drone help gen-go gen-cue fix-cue
|
||||||
|
|
||||||
GO = go
|
GO = go
|
||||||
GO_FILES ?= ./pkg/...
|
GO_FILES ?= ./pkg/... ./pkg/apiserver/... ./pkg/apimachinery/...
|
||||||
SH_FILES ?= $(shell find ./scripts -name *.sh)
|
SH_FILES ?= $(shell find ./scripts -name *.sh)
|
||||||
GO_BUILD_FLAGS += $(if $(GO_BUILD_DEV),-dev)
|
GO_BUILD_FLAGS += $(if $(GO_BUILD_DEV),-dev)
|
||||||
GO_BUILD_FLAGS += $(if $(GO_BUILD_TAGS),-build-tags=$(GO_BUILD_TAGS))
|
GO_BUILD_FLAGS += $(if $(GO_BUILD_TAGS),-build-tags=$(GO_BUILD_TAGS))
|
||||||
@ -167,7 +167,8 @@ test-go: test-go-unit test-go-integration
|
|||||||
.PHONY: test-go-unit
|
.PHONY: test-go-unit
|
||||||
test-go-unit: ## Run unit tests for backend with flags.
|
test-go-unit: ## Run unit tests for backend with flags.
|
||||||
@echo "test backend unit tests"
|
@echo "test backend unit tests"
|
||||||
$(GO) test -short -covermode=atomic -timeout=30m ./pkg/...
|
go list -f '{{.Dir}}/...' -m | xargs \
|
||||||
|
$(GO) test -short -covermode=atomic -timeout=30m
|
||||||
|
|
||||||
.PHONY: test-go-integration
|
.PHONY: test-go-integration
|
||||||
test-go-integration: ## Run integration tests for backend with flags.
|
test-go-integration: ## Run integration tests for backend with flags.
|
||||||
|
@ -96,6 +96,7 @@ def pr_pipelines():
|
|||||||
test_backend(
|
test_backend(
|
||||||
get_pr_trigger(
|
get_pr_trigger(
|
||||||
include_paths = [
|
include_paths = [
|
||||||
|
"Makefile",
|
||||||
"pkg/**",
|
"pkg/**",
|
||||||
"packaging/**",
|
"packaging/**",
|
||||||
".drone.yml",
|
".drone.yml",
|
||||||
@ -112,6 +113,7 @@ def pr_pipelines():
|
|||||||
lint_backend_pipeline(
|
lint_backend_pipeline(
|
||||||
get_pr_trigger(
|
get_pr_trigger(
|
||||||
include_paths = [
|
include_paths = [
|
||||||
|
"Makefile",
|
||||||
"pkg/**",
|
"pkg/**",
|
||||||
"packaging/**",
|
"packaging/**",
|
||||||
".drone.yml",
|
".drone.yml",
|
||||||
|
Loading…
Reference in New Issue
Block a user