File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
dist : trusty
2
- sudo : false
2
+ sudo : required
3
+ services :
4
+ - docker
3
5
language : go
4
6
go :
5
7
- 1.9.1
@@ -16,6 +18,7 @@ script:
16
18
- make test
17
19
- make vendor-status
18
20
- make vet
21
+ - make website-test
19
22
20
23
branches :
21
24
only :
Original file line number Diff line number Diff line change 1
1
TEST? =$$(go list ./... |grep -v 'vendor' )
2
2
GOFMT_FILES? =$$(find . -name '*.go' |grep -v vendor )
3
+ WEBSITE_REPO =github.com/hashicorp/terraform-website
4
+ PKG_NAME =google
3
5
4
6
default : build
5
7
@@ -38,10 +40,24 @@ vendor-status:
38
40
test-compile :
39
41
@if [ " $( TEST) " = " ./..." ]; then \
40
42
echo " ERROR: Set TEST to a specific package. For example," ; \
41
- echo " make test-compile TEST=./aws " ; \
43
+ echo " make test-compile TEST=./$( PKG_NAME ) " ; \
42
44
exit 1; \
43
45
fi
44
46
go test -c $(TEST ) $(TESTARGS )
45
47
46
- .PHONY : build test testacc vet fmt fmtcheck errcheck vendor-status test-compile
48
+ website :
49
+ ifeq (,$(wildcard $(GOPATH ) /src/$(WEBSITE_REPO ) ) )
50
+ echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
51
+ git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
52
+ endif
53
+ @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
54
+
55
+ website-test :
56
+ ifeq (,$(wildcard $(GOPATH ) /src/$(WEBSITE_REPO ) ) )
57
+ echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
58
+ git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
59
+ endif
60
+ @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
61
+
62
+ .PHONY : build test testacc vet fmt fmtcheck errcheck vendor-status test-compile website website-test
47
63
You can’t perform that action at this time.
0 commit comments