From ae717e132bec9b3d829b3725b29a37a8655ad9a8 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Mon, 19 Feb 2018 14:59:38 +0100 Subject: 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. --- .travis.yml | 9 +++------ 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 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 ." -- cgit v1.2.3