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

Commit

Permalink
Add Automated Tests (#27)
Browse files Browse the repository at this point in the history
* Set new HttpClient via cleanhttp

* .drone.yml and build status

* add go get

* add test deps

* go mod

* mod download
  • Loading branch information
mlclmj authored Oct 19, 2019
1 parent 798a16a commit bd4e74c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
kind: pipeline
type: docker
name: default

steps:
- name: test
image: golang
commands:
- go mod download
- go test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# grafana-api-golang-client

[![Build Status](https://cloud.drone.io/api/badges/nytm/go-grafana-api/status.svg)](https://cloud.drone.io/nytm/go-grafana-api)

Grafana HTTP API Client for Go

## Tests
Expand Down
8 changes: 8 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/nytm/go-grafana-api

go 1.12

require (
github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b
github.com/hashicorp/go-cleanhttp v0.5.1
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b h1:/vQ+oYKu+JoyaMPDsv5FzwuL2wwWBgBbtj/YLCi4LuA=
github.com/gobs/pretty v0.0.0-20180724170744-09732c25a95b/go.mod h1:Xo4aNUOrJnVruqWQJBtW6+bTBDTniY8yZum5rF3b5jw=
github.com/hashicorp/go-cleanhttp v0.5.1 h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM=
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=

0 comments on commit bd4e74c

Please sign in to comment.