aboutsummaryrefslogtreecommitdiff
path: root/travis/run-tests-inside-guest
blob: 4499297fb7f7e73baf4a001693f1067590efa596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 -timeout=1200s ./libvirt