From 8fd7675ea4f17a4aac1a543a546854994a23d144 Mon Sep 17 00:00:00 2001 From: Harlow Ward Date: Mon, 18 Feb 2019 11:05:01 -0800 Subject: [PATCH] Add TravisCI setup (#83) We've had a few PRs hit master without running the test, this should help make sure we always know the PR status before merging. --- .travis.yml | 10 ++++++++++ README.md | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5348ca3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: go +services: + - redis-server +go: + - "1.10" +branches: + only: + - master +script: + - go test -v -race ./... diff --git a/README.md b/README.md index 4658cd5..b0430f4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Golang Kinesis Consumer +[![Build Status](https://travis-ci.com/harlow/kinesis-consumer.svg?branch=master)](https://travis-ci.com/harlow/kinesis-consumer) [![GoDoc](https://godoc.org/github.com/harlow/kinesis-consumer?status.svg)](https://godoc.org/github.com/harlow/kinesis-consumers) + Kinesis consumer applications written in Go. This library is intended to be a lightweight wrapper around the Kinesis API to read records, save checkpoints (with swappable backends), and gracefully recover from service timeouts/errors. __Alternate serverless options:__