language: go
sudo: false

go:
- 1.1.2
- 1.2.2
- 1.3.3
- 1.4
- 1.5.4
- 1.6.2
- tip

matrix:
  allow_failures:
    - go: tip

before_script:
- go get github.com/meatballhat/gfmxr/...

script:
- go vet ./...
- go test -v ./...
- gfmxr -c $(grep -c 'package main' README.md) -s README.md
