From 4fa39fdfab64ca8953d06be3f030f5717a66b2e7 Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Thu, 27 Apr 2017 17:40:55 -0400 Subject: [PATCH] Add .travis.yml config --- .travis.yml | 36 ++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..569f1c4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,36 @@ +language: go +go: + - 1.7.5 + - 1.8.1 + - tip +matrix: + allow_failures: + - go: tip + +notifications: + email: + recipients: dean.karn@gmail.com + on_success: change + on_failure: always + +before_install: + - go get -u github.com/go-playground/overalls + - go get -u github.com/mattn/goveralls + - go get -u golang.org/x/tools/cmd/cover + - go get -u github.com/golang/lint/golint + - go get -u github.com/gordonklaus/ineffassign + +before_script: + - go vet ./... + +script: + - gofmt -d -s . + - golint ./... + - ineffassign ./ + - go test -v ./... + - go test -race + +after_success: | + [ $TRAVIS_GO_VERSION = 1.8.1 ] && + overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,examples -debug && + goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN \ No newline at end of file diff --git a/README.md b/README.md index 41e51b3..a253367 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Library webhooks ================ -![Project status](https://img.shields.io/badge/version-3.0.0-green.svg) +![Project status](https://img.shields.io/badge/version-3.1.0-green.svg) [![Build Status](https://semaphoreci.com/api/v1/joeybloggs/webhooks/branches/v3/badge.svg)](https://semaphoreci.com/joeybloggs/webhooks) [![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v3&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v3) [![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)