Skip to content

Commit

Permalink
convert from dep to go mod
Browse files Browse the repository at this point in the history
Closes #30
  • Loading branch information
displague committed Feb 22, 2019
1 parent 6cf3a67 commit c26c4a8
Show file tree
Hide file tree
Showing 78 changed files with 511 additions and 107,288 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ services:
language: go
go:
- "1.11.x"
cache:
directories:
- $GOPATH/pkg
- .autoconf
- vendor

before_install:
# Setup dependency management tool
- curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
env:
global:
- GOFLAGS=-mod=vendor GO111MODULE=on

install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
- dep ensure

script:
- make test
Expand Down
5 changes: 1 addition & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ fmtcheck:
errcheck:
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"

vendor-status:
@dep status

test-compile:
@if [ "$(TEST)" = "./..." ]; then \
echo "ERROR: Set TEST to a specific package. For example,"; \
Expand All @@ -65,5 +62,5 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
endif
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)

.PHONY: build sweep test testacc vet fmt fmtcheck errcheck vendor-status test-compile website website-test
.PHONY: build sweep test testacc vet fmt fmtcheck errcheck test-compile website website-test

Loading

0 comments on commit c26c4a8

Please sign in to comment.