1
0
mirror of https://github.com/cloudflare/gortr.git synced 2024-05-19 06:50:10 +00:00

Add tests to Makefile and travis

This commit is contained in:
Louis Poinsignon
2019-10-20 23:28:54 -07:00
parent c9e9f19080
commit 7a9ba09d42
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@ jobs:
env:
GO111MODULE=on
script:
- make test
- make vet
# Compile
- stage: compile

View File

@ -21,6 +21,10 @@ OUTPUT_GORTR := $(DIST_DIR)gortr-$(GORTR_VERSION)-$(GOOS)-$(ARCH)$(EXTENSION)
vet:
go vet cmd/gortr/gortr.go
.PHONY: test
test:
go test -v github.com/cloudflare/gortr/lib
.PHONY: prepare
prepare:
mkdir -p $(DIST_DIR)