Skip to content

Commit

Permalink
core: Add Go modules integration, update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmathis committed Apr 20, 2019
1 parent d436829 commit 34ab5de
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
os: linux
language: go
env:
- GO111MODULE=on

addons:
apt:
Expand All @@ -8,9 +10,9 @@ addons:

matrix:
include:
- go: 1.9.x
- go: 1.10.x
- go: 1.12.x
env: NAGOCHECK_DEPLOY=1
- go: 1.11.x

install:
- make devel-deps
Expand Down
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@ PKGS = $(shell $(GO) list ./... | grep -v "$(PACKAGE)/shared")
all: lint test build

.PHONY: build
build: deps
build:
$(GO) build \
-ldflags "-X main.BuildDate=$(BUILD_DATE) -X main.BuildCommit=$(BUILD_COMMIT)" \
-o $(TARGET) .

.PHONY: deps
deps:
$(GO) get -d -v -t ./...

.PHONY: devel-deps
devel-deps: deps
$(GO) get github.com/golang/lint/golint
$(GO) get github.com/mattn/goveralls
devel-deps:
$(GO) get -u golang.org/x/lint/golint
$(GO) get -u github.com/mattn/goveralls

.PHONY: lint
lint: devel-deps
Expand Down
45 changes: 45 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module github.com/snapserv/nagocheck

require (
cloud.google.com/go v0.37.4 // indirect
github.com/DataDog/zstd v1.4.0 // indirect
github.com/Shopify/sarama v1.22.0 // indirect
github.com/beorn7/perks v1.0.0 // indirect
github.com/fabiokung/shm v0.0.0-20150728212823-2852b0d79bae
github.com/go-logfmt/logfmt v0.4.0 // indirect
github.com/gogo/protobuf v1.2.1 // indirect
github.com/golang/protobuf v1.3.1 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/goexpect v0.0.0-20190408053752-ad7fe45ef179
github.com/google/goterm v0.0.0-20190311235235-ce302be1d114 // indirect
github.com/google/pprof v0.0.0-20190404155422-f8f10df84213 // indirect
github.com/gorilla/mux v1.7.1 // indirect
github.com/hashicorp/golang-lru v0.5.1 // indirect
github.com/kisielk/errcheck v1.2.0 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 // indirect
github.com/prometheus/common v0.3.0 // indirect
github.com/prometheus/procfs v0.0.0-20190416084830-8368d24ba045 // indirect
github.com/sirupsen/logrus v1.4.1 // indirect
github.com/snapserv/nagopher v1.0.1
github.com/theckman/go-flock v0.7.1
github.com/ziutek/telnet v0.0.0-20180329124119-c3b780dc415b
go.opencensus.io v0.20.2 // indirect
golang.org/x/exp v0.0.0-20190419195159-b8972e603456 // indirect
golang.org/x/image v0.0.0-20190417020941-4e30a6eb7d9a // indirect
golang.org/x/mobile v0.0.0-20190415191353-3e0bab5405d6 // indirect
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a // indirect
golang.org/x/sync v0.0.0-20190412183630-56d357773e84 // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
google.golang.org/api v0.3.2 // indirect
google.golang.org/appengine v1.5.0 // indirect
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7 // indirect
google.golang.org/grpc v1.20.1 // indirect
gopkg.in/alecthomas/kingpin.v2 v2.2.6
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a // indirect
)

0 comments on commit 34ab5de

Please sign in to comment.