From c4b8c1bf8127aa8f9bee137f3e0e7b8507cb2cf5 Mon Sep 17 00:00:00 2001 From: utahta Date: Sun, 18 Feb 2018 16:17:34 +0900 Subject: [PATCH 1/3] Add .circleci/config.yml --- .circleci/config.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..01a8244 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,46 @@ +version: 2.0 + +jobs: + "go-1.8": + docker: + - image: circleci/golang:1.8 + working_directory: /go/src/github.com/utahta/go-cronowriter + steps: + - checkout + - run: go get github.com/golang/dep/cmd/dep + - run: make install + - run: + name: Run tests + command: make test + + "go-1.9": + docker: + - image: circleci/golang:1.9 + working_directory: /go/src/github.com/utahta/go-cronowriter + steps: + - checkout + - run: go get github.com/golang/dep/cmd/dep + - run: make install + - run: + name: Run tests + command: make test + + "go-1.10": + docker: + - image: circleci/golang:1.10 + working_directory: /go/src/github.com/utahta/go-cronowriter + steps: + - checkout + - run: go get github.com/golang/dep/cmd/dep + - run: make install + - run: + name: Run tests + command: make test + +workflows: + version: 2 + build: + jobs: + - "go-1.8" + - "go-1.9" + - "go-1.10" From b6eba3d9af917ddd5f3a0ed4c87d4ce21ddca7a2 Mon Sep 17 00:00:00 2001 From: utahta Date: Sun, 18 Feb 2018 16:36:07 +0900 Subject: [PATCH 2/3] Remove travis Add codecov to circleci --- .circleci/config.yml | 6 ++++-- .travis.yml | 15 --------------- 2 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 01a8244..02f9975 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,8 +10,10 @@ jobs: - run: go get github.com/golang/dep/cmd/dep - run: make install - run: - name: Run tests - command: make test + name: Run tests and coverage + command: | + make test-coverage + bash <(curl -s https://codecov.io/bash) "go-1.9": docker: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9dec490..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go -go: - - 1.6 - - 1.7 - - 1.8 - - 1.9 -sudo: false -install: - - wget -q https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64 -O dep - - chmod +x dep - - ./dep ensure -script: - - make test-coverage -after_success: - - bash <(curl -s https://codecov.io/bash) From b0b4c4c2f37b8d0fbd8f29488da17ccca0878de2 Mon Sep 17 00:00:00 2001 From: utahta Date: Sun, 18 Feb 2018 16:41:10 +0900 Subject: [PATCH 3/3] Add circleci badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b79cb1..baa7598 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # cronowriter [![GoDoc Reference](https://godoc.org/github.com/utahta/go-cronowriter?status.svg)](http://godoc.org/github.com/utahta/go-cronowriter) -[![Build Status](https://travis-ci.org/utahta/go-cronowriter.svg?branch=master)](https://travis-ci.org/utahta/go-cronowriter) +[![CircleCI](https://circleci.com/gh/utahta/go-cronowriter.svg?style=svg)](https://circleci.com/gh/utahta/go-cronowriter) [![codecov](https://codecov.io/gh/utahta/go-cronowriter/branch/master/graph/badge.svg)](https://codecov.io/gh/utahta/go-cronowriter) [![Go Report Card](https://goreportcard.com/badge/github.com/utahta/go-cronowriter)](https://goreportcard.com/report/github.com/utahta/go-cronowriter) [![GitHub release](https://img.shields.io/github/release/utahta/go-cronowriter.svg)](https://github.com/utahta/go-cronowriter/releases)