File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 8
8
sudo : required
9
9
services :
10
10
- 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
11
16
script :
12
17
- make test
13
18
- make testacc
@@ -17,12 +22,21 @@ jobs:
17
22
script :
18
23
- make test
19
24
- 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
20
30
- os : windows
21
31
script :
22
32
# TODO: ensure windows setup can support binary testing
23
- - TF_ACC=1 go test -v ./...
33
+ - TF_ACC=1 TF_ACC_TERRAFORM_PATH=/c/Users/travis/bin/terraform go test -v ./...
34
+ before_script :
35
+ - curl -fSL "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_windows_amd64.zip" -o terraform.zip
36
+ - unzip terraform.zip -d /c/Users/travis/bin
37
+
24
38
env :
25
- - GO111MODULE=on GOFLAGS=-mod=vendor
39
+ - GO111MODULE=on GOFLAGS=-mod=vendor TF_VERSION=0.12.26
26
40
27
41
install :
28
42
# This script is used by the Travis build to install a cookie for
You can’t perform that action at this time.
0 commit comments