Fix Travis CI build

This commit is contained in:
James Mills 2018-07-13 14:50:05 -07:00
parent ae1554dcc4
commit 9f721a88ec
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,7 @@
language: go
sudo: false
go:
- tip
go: "1.10.x"
script:
- go test -race -coverprofile=coverage.txt -covermode=atomic
- make test
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@ -20,7 +20,7 @@ dev: build
deps:
@go get ./...
build: clean deps
build:
@echo " -> Building $(SERVER) $(TAG)$(BUILD) ..."
@cd cmd/$(SERVER) && \
go build -tags $(BUILD_TAGS) -installsuffix netgo \
@ -44,7 +44,7 @@ bench:
@go test -v -bench ./...
test:
@go test -v -cover -race ./...
@go test -v -cover -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -race ./...
clean:
@rm -rf $(APP)