Skip to content

Commit 18b7549

Browse files
committed
ci: fix website-test
1 parent 6c27f1c commit 18b7549

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ matrix:
2929
- go: tip
3030

3131
env:
32-
global: GOFLAGS=-mod=vendor
32+
global:
33+
- GOFLAGS=-mod=vendor
34+
- GO111MODULE=on

GNUmakefile

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
131131
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), getting..."
132132
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
133133
endif
134+
ln -sf ../../../../ext/providers/tencentcloud/website/docs $(GOPATH)/src/github.com/hashicorp/terraform-website/content/source/docs/providers/tencentcloud
135+
ln -sf ../../../ext/providers/tencentcloud/website/tencentcloud.erb $(GOPATH)/src/github.com/hashicorp/terraform-website/content/source/layouts/tencentcloud.erb
134136
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
135137

136138
website-lint:
@@ -155,6 +157,8 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
155157
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), getting..."
156158
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
157159
endif
160+
ln -sf ../../../../ext/providers/tencentcloud/website/docs $(GOPATH)/src/github.com/hashicorp/terraform-website/content/source/docs/providers/tencentcloud
161+
ln -sf ../../../ext/providers/tencentcloud/website/tencentcloud.erb $(GOPATH)/src/github.com/hashicorp/terraform-website/content/source/layouts/tencentcloud.erb
158162
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
159163

160164
.PHONY: build sweep test testacc fmt fmtcheck lint tools test-compile doc hooks website website-lint website-test

0 commit comments

Comments
 (0)