aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 1048239f1ab1e4a20b588b78e53d26ed54548c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dist: trusty
language: go

go:
  - 1.9
go_import_path: github.com/dmacvicar/terraform-provider-libvirt
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:
  - bash ./travis/gofmtcheck.sh
  - 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