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

Commit

Permalink
force vendor (#27)
Browse files Browse the repository at this point in the history
force vendor
  • Loading branch information
ryanking authored and czimergebot committed Sep 16, 2019
1 parent cd42500 commit cb231db
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
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

0 comments on commit cb231db

Please sign in to comment.