From 144700babd5d838a01a9f0a67a39f09328d23b93 Mon Sep 17 00:00:00 2001 From: Aidan Coyle Date: Mon, 5 Dec 2016 13:52:33 -0600 Subject: [PATCH] Add Travis CI Badge and fix .travis.yml It's unfortunately pretty hard to deal gofmt and golint since they don't give a nonzero exit code when they find issues. This way will swallow the output, but it's preferable to making the setup more complicated than it needs to be. --- .travis.yml | 5 ++--- README.md | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08f5929..b5cee08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,12 +6,11 @@ go: - tip before_script: - - go get github.com/GeertJohan/fgt - go get github.com/golang/lint script: - - fgt gomft -l . - - fgt golint ./.. + - test -z $(gomft -l .) + - test -z $(golint ./...) - go vet ./... - go test -v ./... diff --git a/README.md b/README.md index ee8043c..38179b2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Scout +[![Build Status](https://travis-ci.org/enova/scout.svg?branch=master)](https://travis-ci.org/enova/scout) Scout is a daemon for listening to a set of SNS topics and enqueuing anything it finds into sidekiq jobs. It's meant to extract processing of SQS from the rails