Use vendoring for backward compatibility
The switch of the Madon library to Go modules breaks builds with
Go version < 1.11 since the import path now contains "v2".
This patch adds vendoring so that it can still build with those
versions.
Let's try to re-enable Travis builds with Go v1.8-1.11...
sudo: false
language: go
go:
- 1.x
- master
matrix:
allow_failures:
- go: master
fast_finish: true
install:
- # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- go test -v -race ./...