Skip to content

Commit

Permalink
Merge pull request nutanix#58 from nutanix/travis-working-#38
Browse files Browse the repository at this point in the history
Add configuration for CI
  • Loading branch information
marinsalinas authored May 15, 2018
2 parents b4be56c + 849fac2 commit d4cc144
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 36 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
language: go
go:
- 1.10
- "1.10"

go_import_path: github.com/terraform-providers/terraform-provider-nutanix

before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep status
- dep ensure

install:
- bash scripts/gogetcookie.sh
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- export GOPATH="${TRAVIS_BUILD_DIR}/vendor:$GOPATH"
- make build

before_script:
- make vet

script:
- make vendor-status
- make testacc
- make testacc
7 changes: 0 additions & 7 deletions nutanix/data_source_nutanix_clusters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ func TestAccOutscaleClustersDataSource_basic(t *testing.T) {

// Lookup based on InstanceID
const testAccClustersDataSourceConfig = `
provider "nutanix" {
username = "admin"
password = "Nutanix/1234"
endpoint = "10.5.81.134"
insecure = true
port = 9440
}
data "nutanix_clusters" "basic_web" {
metadata = {
length = 3
Expand Down
8 changes: 0 additions & 8 deletions nutanix/data_source_nutanix_virtual_machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ func TestAccNutanixVMDataSource_basic(t *testing.T) {

func testAccVMDataSourceConfig(r int) string {
return fmt.Sprintf(`
provider "nutanix" {
username = "admin"
password = "Nutanix/1234"
endpoint = "10.5.81.134"
insecure = true
port = 9440
}
variable clusterid {
default = "000567f3-1921-c722-471d-0cc47ac31055"
}
Expand Down
8 changes: 0 additions & 8 deletions nutanix/data_source_nutanix_virtual_machines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ func TestAccOutscaleVMSSDataSource_basic(t *testing.T) {

// Lookup based on InstanceID
const testAccVMSSDataSourceConfig = `
provider "nutanix" {
username = "admin"
password = "Nutanix/1234"
endpoint = "10.5.81.134"
insecure = true
port = 9440
}
variable clusterid {
default = "000567f3-1921-c722-471d-0cc47ac31055"
}
Expand Down
8 changes: 0 additions & 8 deletions nutanix/resource_nutanix_virtual_machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ func testAccCheckNutanixVirtualMachineDestroy(s *terraform.State) error {

func testAccNutanixVMConfig(r int) string {
return fmt.Sprint(`
provider "nutanix" {
username = "admin"
password = "Nutanix/1234"
endpoint = "10.5.81.139"
insecure = true
port = 9440
}
variable clusterid {
default = "000567f3-1921-c722-471d-0cc47ac31055"
}
Expand Down

0 comments on commit d4cc144

Please sign in to comment.