forked from dmacvicar/terraform-provider-libvirt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 819 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dist: xenial
sudo: false
language: go
go:
- 1.11.x
env:
- GO111MODULE=on GOFLAGS=-mod=vendor LIBVIRT_DEFAULT_URI='qemu+unix:///session' TF_LIBVIRT_DISABLE_PRIVILEGED_TESTS=1 TF_LIBVIRT_RNG_DEV='/dev/random'
git:
depth: 1
go_import_path: github.com/dmacvicar/terraform-provider-libvirt
install: true
before_script:
- curl -sLo /tmp/terraform.zip https://releases.hashicorp.com/terraform/0.12.0/terraform_0.12.0_linux_amd64.zip
- sudo unzip /tmp/terraform.zip -d /usr/local/bin
- sudo bash ./travis/setup-host
addons:
apt:
packages:
- libvirt-dev
- libvirt-daemon
- qemu-system-x86
- qemu-utils
- genisoimage
- xsltproc
script:
- make fmt-check
- make vet-check
- make lint-check
- make tf-check
- make test
- make testacc TEST_ARGS="-test.failfast"