mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
21
.travis.yml
Normal file
21
.travis.yml
Normal 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 ./...
|
@@ -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{
|
||||
|
Reference in New Issue
Block a user