summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Castelli <fcastelli@suse.com>2018-02-19 14:59:38 +0100
committerFlavio Castelli <fcastelli@suse.com>2018-02-19 14:59:38 +0100
commitae717e132bec9b3d829b3725b29a37a8655ad9a8 (patch)
treecf6dea52cd8a06f770f33a79e17311406762f0ac
parent7619db353fe3b48356bc9b9e06d74fa364986346 (diff)
downloadterraform-provider-libvirt-ae717e132bec9b3d829b3725b29a37a8655ad9a8.tar
terraform-provider-libvirt-ae717e132bec9b3d829b3725b29a37a8655ad9a8.tar.gz
travis: do not run acceptance tests
Acceptance test have to be run inside of lxd, which is not working right now on travis. Let's fall back to regular tests until we have a better jenkins based infra.
-rw-r--r--.travis.yml9
-rw-r--r--Makefile2
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
diff --git a/Makefile b/Makefile
index 317970d8..ac1612ad 100644
--- a/Makefile
+++ b/Makefile
@@ -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 ."