diff options
-rw-r--r-- | .travis.yml | 9 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index e870d5d2..4714805e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ -dist: trusty -language: go +dist: trusty +sudo: false +language: go go: - 1.9 @@ -8,12 +9,8 @@ install: true before_script: - go get github.com/mattn/goveralls - go get github.com/golang/lint/golint - - sudo bash ./travis/setup-host - - sudo lxc exec libvirt -- bash /code/travis/setup-guest script: - make gofmtcheck - make vet - golint -set_exit_status libvirt/ - - sudo lxc exec libvirt -- bash /code/travis/run-tests-inside-guest - - sudo lxc file pull libvirt/root/go/src/github.com/dmacvicar/terraform-provider-libvirt/profile.cov . - goveralls -coverprofile=profile.cov -service=travis-ci @@ -7,7 +7,7 @@ install: go install test: - bash travis/run-tests-acceptance + go test -v -covermode=count -coverprofile=profile.cov ./libvirt vet: @echo "go vet ." |