From 3e352f140b0141e1a9f17563cffd6b13b76431be Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Fri, 12 Oct 2018 09:23:30 -0700 Subject: [PATCH 1/6] adds circle ci --- .circleci/config.yml | 0 COVERAGE | 1 + Makefile | 9 +- coverage.html | 11486 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 11493 insertions(+), 3 deletions(-) create mode 100644 .circleci/config.yml create mode 100644 COVERAGE create mode 100644 coverage.html diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e69de29 diff --git a/COVERAGE b/COVERAGE new file mode 100644 index 0000000..f309e21 --- /dev/null +++ b/COVERAGE @@ -0,0 +1 @@ +70.89 \ No newline at end of file diff --git a/Makefile b/Makefile index 0f8d424..fb421e7 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,11 @@ all: test -tools: - @go get -u github.com/blend/go-sdk/_bin/coverage - @go get -u github.com/blend/go-sdk/_bin/profanity +ci: profanity coverage + +new-install: + @go get -v -u ./... + @go get -v -u github.com/blend/go-sdk/cmd/coverage + @go get -v -u github.com/blend/go-sdk/cmd/profanity test: @go test ./... diff --git a/coverage.html b/coverage.html new file mode 100644 index 0000000..9957897 --- /dev/null +++ b/coverage.html @@ -0,0 +1,11486 @@ + + + + + + + + +
+ +
+ not tracked + + not covered + covered + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + From 4e6c06ca87e10431de842ccdd15bd2fd23393922 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Fri, 12 Oct 2018 09:23:56 -0700 Subject: [PATCH 2/6] removing coverage artifact --- .gitignore | 1 + coverage.html | 11486 ------------------------------------------------ 2 files changed, 1 insertion(+), 11486 deletions(-) delete mode 100644 coverage.html diff --git a/.gitignore b/.gitignore index ab2dcb7..3e4b6e1 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ # Other .vscode .DS_Store +coverage.html \ No newline at end of file diff --git a/coverage.html b/coverage.html deleted file mode 100644 index 9957897..0000000 --- a/coverage.html +++ /dev/null @@ -1,11486 +0,0 @@ - - - - - - - - -
- -
- not tracked - - not covered - covered - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - From f5889c93aee3b900f3b4258a8796cc648b9a4908 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Fri, 12 Oct 2018 09:24:20 -0700 Subject: [PATCH 3/6] copy pasta --- .circleci/config.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e69de29..0b7654d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -0,0 +1,17 @@ +version: 2 +jobs: + build: + working_directory: /go/src/github.com/wcharczuk/go-chart + docker: + - image: circleci/golang:1.11 + steps: + - checkout + - run: + name: new-install + command: make new-install + - run: + name: ci + command: make ci + - store_artifacts: + path: coverage.html + destination: coverage.html \ No newline at end of file From 70d5b73afdcad98123e0cfd019bb4716e7630d9f Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Fri, 12 Oct 2018 09:26:46 -0700 Subject: [PATCH 4/6] fixing build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb421e7..84f7228 100644 --- a/Makefile +++ b/Makefile @@ -14,5 +14,5 @@ test: profanity: @profanity -include="*.go,Makefile,README.md" -cover: +coverage: @coverage \ No newline at end of file From 31d235310c1c471e088ea8f2cf7eb6876f301684 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Fri, 12 Oct 2018 09:28:44 -0700 Subject: [PATCH 5/6] removing travis references --- .travis.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 38ebb8e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go - -go: - - 1.11 - -sudo: false - -before_script: - - go get -u github.com/blend/go-sdk/assert - - go get ./... - -script: - - go test ./... From 96acfc6a9fbadd98cb536958bff56faf5a803044 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Fri, 12 Oct 2018 09:35:03 -0700 Subject: [PATCH 6/6] switching the build badge --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 57437ba..0ba77f8 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ go-chart ======== -[![Build Status](https://travis-ci.org/wcharczuk/go-chart.svg?branch=master)](https://travis-ci.org/wcharczuk/go-chart) [![Go Report Card](https://goreportcard.com/badge/github.com/wcharczuk/go-chart)](https://goreportcard.com/report/github.com/wcharczuk/go-chart) +[![CircleCI](https://circleci.com/gh/wcharczuk/go-chart.svg?style=svg)](https://circleci.com/gh/wcharczuk/go-chart) [![Go Report Card](https://goreportcard.com/badge/github.com/wcharczuk/go-chart)](https://goreportcard.com/report/github.com/wcharczuk/go-chart) Package `chart` is a very simple golang native charting library that supports timeseries and continuous -line charts. +line charts. The v1.0 release has been tagged so things should be more or less stable, if something changes please log an issue. @@ -17,9 +17,9 @@ To install `chart` run the following: > go get -u github.com/wcharczuk/go-chart ``` -Most of the components are interchangeable so feel free to crib whatever you want. +Most of the components are interchangeable so feel free to crib whatever you want. -# Output Examples +# Output Examples Spark Lines: