Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit bd4e74c

Browse files
authored
Add Automated Tests (#27)
* Set new HttpClient via cleanhttp * .drone.yml and build status * add go get * add test deps * go mod * mod download
1 parent 798a16a commit bd4e74c

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.drone.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
kind: pipeline
3+
type: docker
4+
name: default
5+
6+
steps:
7+
- name: test
8+
image: golang
9+
commands:
10+
- go mod download
11+
- go test

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# grafana-api-golang-client
22

3+
[![Build Status](https://cloud.drone.io/api/badges/nytm/go-grafana-api/status.svg)](https://cloud.drone.io/nytm/go-grafana-api)
4+
35
Grafana HTTP API Client for Go
46

57
## Tests

go.mod

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/nytm/go-grafana-api
2+
3+
go 1.12
4+
5+
require (
6+
github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b
7+
github.com/hashicorp/go-cleanhttp v0.5.1
8+
)

go.sum

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b h1:/vQ+oYKu+JoyaMPDsv5FzwuL2wwWBgBbtj/YLCi4LuA=
2+
github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b/go.mod h1:Xo4aNUOrJnVruqWQJBtW6+bTBDTniY8yZum5rF3b5jw=
3+
github.com/hashicorp/go-cleanhttp v0.5.1 h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM=
4+
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=

0 commit comments

Comments
 (0)