Enable Travis builds

This commit adds a .travis file which enables Travis builds for
govmm.  The script builds the source and runs the unit tests
and gometalinter enabling

- misspell
- vet
- ineffassign
- gofmt
- gocyclo 15
- golint
- errcheck
- deadcode

Signed-off-by: Mark Ryan <mark.d.ryan@intel.com>
This commit is contained in:
Mark Ryan 2017-12-12 11:19:02 +00:00
parent 9cb47fc07d
commit db60e32f30

21
.travis.yml Normal file
View File

@ -0,0 +1,21 @@
language: go
go:
- 1.8
- 1.9
- tip
go_import_path: github.com/intel/govmm
matrix:
allow_failures:
- go: tip
before_install:
- go get github.com/alecthomas/gometalinter
- gometalinter --install
script:
- go env
- go test -v ./...
- gometalinter --tests --vendor --disable-all --enable=misspell --enable=vet --enable=ineffassign --enable=gofmt --enable=gocyclo --cyclo-over=15 --enable=golint --enable=errcheck --enable=deadcode ./...