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

force vendor #27

Merged
merged 1 commit into from
Sep 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dist: trusty
language: go
install:
- 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/
- 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/
jobs:
include:
- stage: test
script: make test
script: make test-ci
22 changes: 18 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
export GOFLAGS=-mod=vendor
export GO111MODULE=on

build: packr
@CGO_ENABLED=0 GOOS=linux go build -o terraform-provider-bless
.PHONY: build

test: deps packr
@TF_ACC=yes go test -cover -v ./...
.PHONY: test

test: packr
test-ci: packr
@TF_ACC=yes go test -cover -v ./...
.PHONY: test-ci

deps:
go mod tidy
go mod vendor
.PHONY: deps

packr: clean
packr
.PHONY: packr

clean: ## clean the repo
rm terraform-provider-bless 2>/dev/null || true
go clean
rm -rf dist 2>/dev/null || true
packr clean
rm coverage.out 2>/dev/null || true

.PHONY: clean

release: ## run a release
bff bump
git push
goreleaser release --rm-dist

.PHONY: build test packr release
.PHONY: release