Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump golang to v1.14 #212

Merged
merged 3 commits into from
May 15, 2020
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 .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.14
steps:
- checkout
- run:
name: "Test"
command: make test
- run:
name: "Build"
command: make build
command: make build
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,23 @@
# go build -o $(BINARY) command/*

.PHONY: build

GOPATH?=$(shell go env GOPATH)
GO111MODULE=auto

build: build-deps
go build -mod=vendor -o pd ./command

.PHONY: build-deps
build-deps:
go get
go mod verify
go mod vendor

.PHONY: install
install: build
cp pd $(GOPATH)/bin
cp pd $(GOROOT)/bin

.PHONY: test
test:
go test ./...

.PHONY: deploy
deploy:
- curl -sL https://git.io/goreleaser | bash

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/PagerDuty/go-pagerduty

go 1.12
go 1.14

require (
github.com/google/go-querystring v1.0.0
Expand Down