aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/kylelemons/gousb/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/kylelemons/gousb/.travis.yml')
-rw-r--r--vendor/github.com/kylelemons/gousb/.travis.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/github.com/kylelemons/gousb/.travis.yml b/vendor/github.com/kylelemons/gousb/.travis.yml
new file mode 100644
index 0000000..98a755b
--- /dev/null
+++ b/vendor/github.com/kylelemons/gousb/.travis.yml
@@ -0,0 +1,24 @@
+language: go
+dist: trusty
+
+go:
+ - 1.7
+ - 1.8
+ - tip
+
+addons:
+ apt:
+ packages:
+ libusb-1.0-0-dev
+
+install:
+ - go get golang.org/x/tools/cmd/cover
+ - go get github.com/mattn/goveralls
+
+script:
+ # a workaround for go test not supporting coverage for multiple packages in a single invocation.
+ # If goveralls upload fails, ignore the result.
+ - |-
+ echo 'mode: count' > coverage.merged && go list ./... | xargs -n1 -I{} sh -c ': > coverage.tmp; go test -v -covermode=count -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> coverage.merged' && rm coverage.tmp
+ - |-
+ $HOME/gopath/bin/goveralls -coverprofile=coverage.merged -service=travis-ci -ignore usb/libusb.go || true