aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: e870d5d28904606f0a241b3f93ee33ccf87eabd5 (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:
  - make gofmtcheck
  - 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