From 5d2d37a5f8e58dcf94ee1b6999b9d4c1bc9ba7da Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 13 Feb 2017 07:55:06 +1100 Subject: [PATCH] Fixed travis script, added Travis banner to readme --- README.md | 2 +- ci.sh | 3 ++- precheckin.sh | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d25eb14e..fd3b97ac 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# yaml +# yaml [![Build Status](https://travis-ci.org/mikefarah/yaml.svg?branch=master)](https://travis-ci.org/mikefarah/yaml) yaml is a lightweight and flexible command-line YAML processor The aim of the project is to be the [jq](https://github.com/stedolan/jq) or sed of yaml files. diff --git a/ci.sh b/ci.sh index a2711613..46b2b864 100755 --- a/ci.sh +++ b/ci.sh @@ -1,6 +1,7 @@ #!/bin/bash -golint +set -e + go test go build diff --git a/precheckin.sh b/precheckin.sh index b362e878..ca5f33f4 100755 --- a/precheckin.sh +++ b/precheckin.sh @@ -1,7 +1,9 @@ #!/bin/bash -gofmt -w . +set -e +gofmt -w . +golint ./ci.sh go install