summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml9
-rw-r--r--README.md2
2 files changed, 11 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9a30af2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,9 @@
+language: go
+sudo: false
+go:
+ # Used for building XenServer Dundee
+ - 1.4.2
+ # Forwards compatibility
+ - 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
diff --git a/README.md b/README.md
index ac8c91b..cac05c7 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[![Build Status](https://travis-ci.org/xenserver/xe-guest-utilities.svg?branch=master)](https://travis-ci.org/xenserver/xe-guest-utilities)
+
go-guest-utilites
===================