Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit cb231db

Browse files
ryankingczimergebot
authored andcommitted
force vendor (#27)
force vendor
1 parent cd42500 commit cb231db

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dist: trusty
22
language: go
33
install:
4-
- curl -fSL --retry 5 https://github.com/gobuffalo/packr/releases/download/v1.13.1/packr_1.13.1_linux_amd64.tar.gz | sudo tar zx -C /usr/bin/
4+
- curl -fSL --retry 5 https://github.com/gobuffalo/packr/releases/download/v1.13.1/packr_1.13.1_linux_amd64.tar.gz | sudo tar zx -C /usr/bin/
55
jobs:
66
include:
77
- stage: test
8-
script: make test
8+
script: make test-ci

Makefile

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
1+
export GOFLAGS=-mod=vendor
2+
export GO111MODULE=on
3+
14
build: packr
25
@CGO_ENABLED=0 GOOS=linux go build -o terraform-provider-bless
6+
.PHONY: build
7+
8+
test: deps packr
9+
@TF_ACC=yes go test -cover -v ./...
10+
.PHONY: test
311

4-
test: packr
12+
test-ci: packr
513
@TF_ACC=yes go test -cover -v ./...
14+
.PHONY: test-ci
15+
16+
deps:
17+
go mod tidy
18+
go mod vendor
19+
.PHONY: deps
620

721
packr: clean
822
packr
23+
.PHONY: packr
924

1025
clean: ## clean the repo
1126
rm terraform-provider-bless 2>/dev/null || true
1227
go clean
1328
rm -rf dist 2>/dev/null || true
1429
packr clean
1530
rm coverage.out 2>/dev/null || true
16-
31+
.PHONY: clean
1732

1833
release: ## run a release
1934
bff bump
2035
git push
2136
goreleaser release --rm-dist
22-
23-
.PHONY: build test packr release
37+
.PHONY: release

0 commit comments

Comments
 (0)