From 509e3a752779f82e58dc3f78ef548dcff563d452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E4=B8=96=E6=88=90?= Date: Tue, 23 Oct 2018 19:15:13 +0800 Subject: [PATCH] Add test case cover --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 12505ce..66bc10b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,9 +10,15 @@ go: - "1.8" - "1.10.x" - "1.11.x" +before_install: + - go get -t -v ./... script: + - go test -race -coverprofile=coverage.txt -covermode=atomic - go build + +after_success: + - bash <(curl -s https://codecov.io/bash) deploy: provider: releases @@ -22,4 +28,4 @@ deploy: skip_cleanup: true on: all_branches: true - tags: true \ No newline at end of file + tags: true -- 2.45.2