language: go
go:
  - 1.9
  - 1.8

install:
  - go get github.com/golang/dep/cmd/dep
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
  - dep ensure

script:
  - go test -v -covermode=count -coverprofile=coverage.out ./encryption ./astcrypt
  - $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci


language: go
go:
  - 1.9
  - 1.8

install:
  - go get github.com/golang/dep/cmd/dep
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
  - go get github.com/modocache/gover
  - dep ensure

script:
  - go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | grep -v vendor/ | xargs -L 1 sh -c
  - $GOPATH/bin/gover
  - $GOPATH/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci

Use gover for merging multiple package cover profiles
Use gover for merging multiple package cover profiles

Used this gist: https://gist.github.com/rjeczalik/6f01430e8554bf59b88e
