Merge pull request #1 from markdryan/add-travis

Enable Travis builds
This commit is contained in:
Mark Ryan
2017-12-12 12:05:08 +00:00
committed by GitHub
2 changed files with 29 additions and 8 deletions

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 ./...

View File

@@ -146,10 +146,10 @@ func TestAppendDeviceNetworkMq(t *testing.T) {
bar, _ := ioutil.TempFile(os.TempDir(), "govmm-qemu-test")
defer func() {
foo.Close()
bar.Close()
os.Remove(foo.Name())
os.Remove(bar.Name())
_ = foo.Close()
_ = bar.Close()
_ = os.Remove(foo.Name())
_ = os.Remove(bar.Name())
}()
netdev := NetDevice{
@@ -196,10 +196,10 @@ func TestAppendDeviceNetworkPCIMq(t *testing.T) {
bar, _ := ioutil.TempFile(os.TempDir(), "govmm-qemu-test")
defer func() {
foo.Close()
bar.Close()
os.Remove(foo.Name())
os.Remove(bar.Name())
_ = foo.Close()
_ = bar.Close()
_ = os.Remove(foo.Name())
_ = os.Remove(bar.Name())
}()
netdev := NetDevice{