Skip to content

Commit 788058e

Browse files
authored
Merge pull request #72 from hashicorp/binary-acctesting
Breaking change: SDK v2
2 parents bed3deb + b702329 commit 788058e

File tree

1,966 files changed

+214520
-133349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,966 files changed

+214520
-133349
lines changed

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.5
1+
1.15.2

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: go
22
go:
3-
- "1.11.x"
3+
- stable
4+
- tip
45
jobs:
56
include:
67
- os: linux
@@ -12,17 +13,19 @@ jobs:
1213
- make test
1314
- make testacc
1415
- make vet
15-
- make website-test
1616
- os: osx
1717
script:
1818
- make test
1919
- make testacc
2020
- os: windows
2121
script:
22-
# TODO: ensure windows setup can support binary testing
2322
- TF_ACC=1 go test -v ./...
23+
before_script:
24+
- curl -fSL "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_windows_amd64.zip" -o terraform.zip
25+
- unzip terraform.zip -d /c/Users/travis/bin
26+
2427
env:
25-
- GO111MODULE=on GOFLAGS=-mod=vendor
28+
- GO111MODULE=on GOFLAGS=-mod=vendor TF_VERSION=0.13.3
2629

2730
install:
2831
# This script is used by the Travis build to install a cookie for

GNUmakefile

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
TEST?=$$(go list ./... |grep -v 'vendor')
22
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3-
WEBSITE_REPO=github.com/hashicorp/terraform-website
43
PKG_NAME=archive
54

65
default: build
@@ -43,19 +42,4 @@ test-compile:
4342
fi
4443
go test -c $(TEST) $(TESTARGS)
4544

46-
website:
47-
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
48-
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
49-
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
50-
endif
51-
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
52-
53-
website-test:
54-
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
55-
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
56-
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
57-
endif
58-
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
59-
60-
.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test
61-
45+
.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile

archive/data_source_archive_file_test.go

Lines changed: 0 additions & 145 deletions
This file was deleted.

archive/provider.go

Lines changed: 0 additions & 20 deletions
This file was deleted.

archive/provider_test.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

go.mod

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
module github.com/terraform-providers/terraform-provider-archive
1+
module github.com/hashicorp/terraform-provider-archive
22

3-
go 1.14
3+
go 1.15
44

5-
require (
6-
github.com/hashicorp/hcl v1.0.0 // indirect
7-
github.com/hashicorp/terraform-plugin-sdk v1.12.0
8-
)
5+
require github.com/hashicorp/terraform-plugin-sdk/v2 v2.0.3

0 commit comments

Comments
 (0)