Add Travis CI including a check for gofmt -s

Attempt building with both go1 and the currrent go release, to ensure
compatibility.

Signed-off-by: Robert Breker <robert.breker@citrix.com>
This commit is contained in:
Robert Breker 2015-05-18 15:14:19 +00:00
parent 52fa3fe1b5
commit 116eff17bc
2 changed files with 9 additions and 0 deletions

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
language: go
go:
# Test with the first and the latest go release - to ensure compatibility
- 1
- release
script:
- gofmtresult=$(gofmt -s -l .); if [[ -n $gofmtresult ]]; then echo -e "Please run \"gofmt -s -w .\" before committing for the below:\n$gofmtresult"; false; fi

View File

@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/rdobson/packer-builder-xenserver?branch=master)](https://travis-ci.org/rdobson/packer-builder-xenserver)
# XenServer packer.io builder
This builder plugin extends packer.io to support building images for XenServer.