Skip to content

Commit a084858

Browse files
Refactor CI: Use Drone and Go 1.16 (#168)
1 parent 369494e commit a084858

File tree

6 files changed

+34
-33
lines changed

6 files changed

+34
-33
lines changed

.drone.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
kind: pipeline
3+
type: docker
4+
name: test-pr
5+
6+
platform:
7+
os: linux
8+
arch: amd64
9+
10+
steps:
11+
12+
- name: tests
13+
image: golang:1.16
14+
commands:
15+
- make vet
16+
- make test
17+
- make testacc
18+
environment:
19+
GRAFANA_URL: http://grafana:3000
20+
GRAFANA_AUTH: admin:admin
21+
GRAFANA_ORG_ID: 1
22+
23+
services:
24+
- name: grafana
25+
image: grafana/grafana:7.4.2
26+
27+
trigger:
28+
event:
29+
- pull_request

.travis.yml

-30
This file was deleted.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
# Terraform Provider for Grafana
66

7+
[![Build Status](https://drone.grafana.net/api/badges/grafana/terraform-provider-grafana/status.svg)](https://drone.grafana.net/grafana/terraform-provider-grafana)
8+
79
- Terraform website: https://terraform.io
810
- Grafana website: https://grafana.com
911
- Provider Documentation: https://registry.terraform.io/providers/grafana/grafana/latest/docs

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.8'
22

33
services:
44
grafana-provider:
5-
image: golang:1.14
5+
image: golang:1.16
66
environment:
77
- GRAFANA_URL=http://grafana:3000
88
- GRAFANA_AUTH=admin:admin

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/terraform-providers/terraform-provider-grafana
22

3-
go 1.14
3+
go 1.16
44

55
require (
66
github.com/grafana/grafana-api-golang-client v0.0.0-20210204123314-0aa501c4b8c4

grafana/resource_alert_notification_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestAccAlertNotification_invalid_frequence(t *testing.T) {
9595
CheckDestroy: testAccAlertNotificationCheckDestroy(&alertNotification),
9696
Steps: []resource.TestStep{
9797
{
98-
ExpectError: regexp.MustCompile("time: invalid duration hi"),
98+
ExpectError: regexp.MustCompile("time: invalid duration \"hi\""),
9999
Config: testAccAlertNotificationConfig_invalid_frequency,
100100
},
101101
},

0 commit comments

Comments
 (0)