aboutsummaryrefslogtreecommitdiff
path: root/travis/run-tests-inside-guest
diff options
context:
space:
mode:
Diffstat (limited to 'travis/run-tests-inside-guest')
-rwxr-xr-xtravis/run-tests-inside-guest19
1 files changed, 19 insertions, 0 deletions
diff --git a/travis/run-tests-inside-guest b/travis/run-tests-inside-guest
new file mode 100755
index 00000000..63fbb0c5
--- /dev/null
+++ b/travis/run-tests-inside-guest
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -x
+
+unset http_proxy
+
+export GOROOT=/usr/lib/go-1.8/
+export GOPATH=/root/go
+export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
+
+mkdir -p /root/go/src/github.com/dmacvicar/
+cp -r /code/ /root/go/src/github.com/dmacvicar/terraform-provider-libvirt
+cd /root/go/src/github.com/dmacvicar/terraform-provider-libvirt
+
+go build .
+
+export TERRAFORM_LIBVIRT_TEST_DOMAIN_TYPE=qemu
+export LIBVIRT_DEFAULT_URI="qemu:///system"
+export TF_ACC=true
+go test -v -covermode=count -coverprofile=profile.cov ./libvirt