From ce135a4ebeee6cfe9a26c93ee0d37825f26113c7 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Fri, 3 Mar 2017 13:59:13 -0600 Subject: [PATCH] Add Travis CI --- .travis.yml | 14 ++++++++++++++ README.md | 1 + 2 files changed, 15 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4da9766 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: go +sudo: required +go: + - 1.7.5 + - 1.8 + - tip +os: + - linux +matrix: + allow_failures: + - go: tip + fast_finish: true +script: + - make check diff --git a/README.md b/README.md index bc2a1a5..e693939 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ cast ==== [![GoDoc](https://godoc.org/github.com/spf13/cast?status.svg)](https://godoc.org/github.com/spf13/cast) +[![Build Status](https://api.travis-ci.org/spf13/cast.svg?branch=master)](https://travis-ci.org/spf13/cast) [![Go Report Card](https://goreportcard.com/badge/github.com/spf13/cast)](https://goreportcard.com/report/github.com/spf13/cast) Easy and safe casting from one type to another in Go