Skip to content

Commit 6fa695a

Browse files
committed
udpate CI for cross-platform testing
1 parent fd7bb5c commit 6fa695a

File tree

2 files changed

+5
-32
lines changed

2 files changed

+5
-32
lines changed

.travis.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,31 @@
11
language: go
22
go:
3-
- "1.11.x"
3+
- stable
4+
- tip
45
jobs:
56
include:
67
- os: linux
78
dist: trusty
89
sudo: required
910
services:
1011
- 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
1612
script:
1713
- make test
1814
- make testacc
1915
- make vet
20-
- make website-test
2116
- os: osx
2217
script:
2318
- make test
2419
- 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
3020
- os: windows
3121
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 ./...
3423
before_script:
3524
- curl -fSL "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_windows_amd64.zip" -o terraform.zip
3625
- unzip terraform.zip -d /c/Users/travis/bin
3726

3827
env:
39-
- GO111MODULE=on GOFLAGS=-mod=vendor TF_VERSION=0.12.26
28+
- GO111MODULE=on GOFLAGS=-mod=vendor TF_VERSION=0.13.3
4029

4130
install:
4231
# 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

0 commit comments

Comments
 (0)