forked from grafana/terraform-provider-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
47 lines (39 loc) · 1.37 KB
/
GNUmakefile
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
37
38
39
40
41
42
43
44
45
46
47
GRAFANA_VERSION ?= latest
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m
testacc-enterprise: TESTARGS+=-tags='enterprise'
testacc-enterprise: testacc
testacc-cloud: TESTARGS+=-tags='cloud'
testacc-cloud: testacc
testacc-docker:
GRAFANA_VERSION=$(GRAFANA_VERSION) \
docker-compose \
-f ./docker-compose.yml \
run --rm grafana-provider \
make testacc
testacc-docker-tls:
GRAFANA_VERSION=$(GRAFANA_VERSION) \
docker-compose \
-f ./docker-compose.yml \
-f ./docker-compose.tls.yml \
run --rm grafana-provider \
make testacc
changelog:
@test $${RELEASE_VERSION?Please set environment variable RELEASE_VERSION}
@test $${CHANGELOG_GITHUB_TOKEN?Please set environment variable CHANGELOG_GITHUB_TOKEN}
@docker run -it --rm \
-v $$PWD:/usr/local/src/your-app \
-e CHANGELOG_GITHUB_TOKEN=$$CHANGELOG_GITHUB_TOKEN \
ferrarimarco/github-changelog-generator \
--user grafana \
--project terraform-provider-grafana \
--future-release $$RELEASE_VERSION
@git add CHANGELOG.md && git commit -m "Release $$RELEASE_VERSION"
release:
@test $${RELEASE_VERSION?Please set environment variable RELEASE_VERSION}
@git tag $$RELEASE_VERSION
@git push origin $$RELEASE_VERSION
drone:
drone jsonnet --stream --source .drone/drone.jsonnet --target .drone/drone.yml
drone lint .drone/drone.yml
drone sign --save grafana/terraform-provider-grafana .drone/drone.yml