Browse Source

add codecov report

kevin 4 năm trước cách đây
mục cha
commit
489980ea0f
2 tập tin đã thay đổi với 14 bổ sung1 xóa
  1. 1 1
      .github/workflows/go.yml
  2. 13 0
      .travis.yml

+ 1 - 1
.github/workflows/go.yml

@@ -27,4 +27,4 @@ jobs:
         go get -v -t -d ./...
 
     - name: Test
-      run: go test -v -race ./...
+      run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...

+ 13 - 0
.travis.yml

@@ -0,0 +1,13 @@
+language: go
+
+go:
+  - 1.14.x
+
+before_install:
+  - go get -t -v ./...
+
+script:
+  - go test -race -coverprofile=coverage.txt -covermode=atomic
+
+after_success:
+  - bash <(curl -s https://codecov.io/bash)