diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..02f9975 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,48 @@ +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 and coverage + command: | + make test-coverage + bash <(curl -s https://codecov.io/bash) + + "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" 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) 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)