File tree Expand file tree Collapse file tree 2 files changed +5
-32
lines changed Expand file tree Collapse file tree 2 files changed +5
-32
lines changed Original file line number Diff line number Diff line change 1
1
language : go
2
2
go :
3
- - " 1.11.x"
3
+ - stable
4
+ - tip
4
5
jobs :
5
6
include :
6
7
- os : linux
7
8
dist : trusty
8
9
sudo : required
9
10
services :
10
11
- docker
11
- before_script :
12
- - curl -fSL "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip" -o terraform.zip
13
- - sudo unzip terraform.zip -d /opt/terraform
14
- - sudo ln -s /opt/terraform/terraform /usr/bin/terraform
15
- - rm -f terraform.zip
16
12
script :
17
13
- make test
18
14
- make testacc
19
15
- make vet
20
- - make website-test
21
16
- os : osx
22
17
script :
23
18
- make test
24
19
- make testacc
25
- before_script :
26
- - curl -fSL "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_darwin_amd64.zip" -o terraform.zip
27
- - sudo unzip terraform.zip -d /opt/terraform
28
- - sudo ln -s /opt/terraform/terraform /usr/local/bin/terraform
29
- - rm -f terraform.zip
30
20
- os : windows
31
21
script :
32
- # TODO: ensure windows setup can support binary testing
33
- - TF_ACC=1 TF_ACC_TERRAFORM_PATH=/c/Users/travis/bin/terraform go test -v ./...
22
+ - TF_ACC=1 go test -v ./...
34
23
before_script :
35
24
- curl -fSL "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_windows_amd64.zip" -o terraform.zip
36
25
- unzip terraform.zip -d /c/Users/travis/bin
37
26
38
27
env :
39
- - GO111MODULE=on GOFLAGS=-mod=vendor TF_VERSION=0.12.26
28
+ - GO111MODULE=on GOFLAGS=-mod=vendor TF_VERSION=0.13.3
40
29
41
30
install :
42
31
# This script is used by the Travis build to install a cookie for
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
3
PKG_NAME =archive
5
4
6
5
default : build
@@ -43,19 +42,4 @@ test-compile:
43
42
fi
44
43
go test -c $(TEST ) $(TESTARGS )
45
44
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
You can’t perform that action at this time.
0 commit comments