Skip to content

Commit

Permalink
Merge pull request #11 from hakobe/release-stuffs
Browse files Browse the repository at this point in the history
adjust releng files
  • Loading branch information
Songmu authored Mar 30, 2019
2 parents a47e0c3 + fddb9da commit 884727b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: go
go:
- 1.8
- "1.10"
- tip
script:
- make lint
- make test
after_script:
- make cover
38 changes: 30 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
test: deps
go test ./...
VERSION = $(shell godzil show-version)
ifdef update
u=-u
endif

export GO111MODULE=on

.PHONY: deps
deps:
go get -d -v -t ./...
go get github.com/golang/lint/golint
go get ${u} -d

.PHONY: devel-deps
devel-deps: deps
GO111MODULE=off go get ${u} \
golang.org/x/lint/golint \
github.com/mattn/goveralls \
github.com/Songmu/godzil/cmd/godzil

.PHONY: test
test: deps
go test

.PHONY: lint
lint: devel-deps
go vet
golint -set_exit_status

lint: deps
go vet ./...
golint -set_exit_status ./...
.PHONY: cover
cover: devel-deps
goveralls

.PHONY: test deps lint
.PHONY: release
release: devel-deps
godzil release
6 changes: 4 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package paranoidhttp

import "testing"
import "net"
import (
"net"
"testing"
)

func TestRequest(t *testing.T) {
resp, err := DefaultClient.Get("http://www.example.org")
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/hakobe/paranoidhttp

go 1.12
3 changes: 3 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package paranoidhttp

const version = "0.0.0"

0 comments on commit 884727b

Please sign in to comment.