aboutsummaryrefslogtreecommitdiff
path: root/travis/run-tests-inside-guest
blob: 32ff977350581dfe6017577ba6ae113196c9e8f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -x

base="/root/go/src/github.com/dmacvicar"

unset http_proxy

export GOROOT="/usr/lib/go-1.9/"
export GOPATH="/root/go"
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

mkdir -p $base
cp -r /code/ $base/terraform-provider-libvirt
cd $base/terraform-provider-libvirt

go build .

export TERRAFORM_LIBVIRT_TEST_DOMAIN_TYPE="qemu"
export LIBVIRT_DEFAULT_URI="qemu:///system"
export TF_ACC="true"
export TF_SKIP_QEMU_AGENT="true"

go test -v -covermode=count -coverprofile=profile.cov -timeout=1200s ./libvirt