Note: When go-grpc-prometheus was in the main $gopath (even at this
version) and everyone else was where they always were in vendor/ this
didn't build! It gave errors like:
have SendHeader("github.com/purpleidea/mgmt/vendor/google.golang.org/grpc/metadata".MD) error
want SendHeader("google.golang.org/grpc/metadata".MD) error
and I got frustrated. Putting it "next" to the other vendored deps seems
to have fixed this. Where are the golang docs that explain this
phenomenon?
This also requires golang 1.8+ as that is a requirement for etcd. It's
probably a reasonable thing for us too.
Note the older versions of etcd had some bugs with the concurrency
package and other things, so this is a necessary bump.
35 lines
661 B
YAML
35 lines
661 B
YAML
language: go
|
|
go:
|
|
- 1.8.x
|
|
- 1.9.x
|
|
- tip
|
|
go_import_path: github.com/purpleidea/mgmt
|
|
sudo: true
|
|
dist: trusty
|
|
before_install:
|
|
- sudo apt update
|
|
- git fetch --unshallow
|
|
install: 'make deps'
|
|
script: 'make test'
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- go: tip
|
|
- go: 1.9.x
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "irc.freenode.net#mgmtconfig"
|
|
template:
|
|
- "%{repository} (%{commit}: %{author}): %{message}"
|
|
- "More info : %{build_url}"
|
|
on_success: always
|
|
on_failure: always
|
|
use_notice: false
|
|
skip_join: false
|
|
email:
|
|
recipients:
|
|
- travis-ci@shubin.ca
|
|
on_failure: change
|
|
on_success: change
|