build: add travis config

This commit is contained in:
Joost Jager 2019-03-07 10:19:27 +01:00
parent 83e8d17d62
commit a83824bbb5
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
2 changed files with 40 additions and 0 deletions

15
Makefile Normal file
View file

@ -0,0 +1,15 @@
PKG := github.com/lightninglabs/loop
GOTEST := GO111MODULE=on go test -v
GOLIST := go list $(PKG)/... | grep -v '/vendor/'
XARGS := xargs -L 1
TEST_FLAGS = -test.timeout=20m
UNIT := $(GOLIST) | $(XARGS) env $(GOTEST) $(TEST_FLAGS)
unit:
@$(call print, "Running unit tests.")
$(UNIT)