Merge pull request #11 from docopt/travis-ci

tests(ci): add travis-ci.org config file for unit tests
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..c3e33d6
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,14 @@
+# Travis CI (http://travis-ci.org/) is a continuous integration
+# service for open source projects. This file configures it
+# to run unit tests for docopt-go.
+
+language: go
+
+go:
+    - 1.1.2
+    - 1.2.1
+    - tip
+
+install: go get -d -v ./... && go build -v .
+
+script: go test -v .
diff --git a/README.md b/README.md
index 5fb38c4..bdff6df 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
 docopt.go
 =========
 
+[![Build Status](https://travis-ci.org/docopt/docopt-go.svg?branch=master)](https://travis-ci.org/docopt/docopt-go)
+
 Golang implementation of [docopt](http://docopt.org/) 0.6.1+fix
 
 ## Installation