浏览代码

Change -covermode from count to atomic and add -race

As suggested by @bobheadxi.

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 6 年之前
父节点
当前提交
f2caa72784
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      .travis.yml

+ 1 - 2
.travis.yml

@@ -64,8 +64,7 @@ script:
   - go vet -tags tensorflow ./...
   - golint -set_exit_status $(go list ./... | grep -v /vendor/)
   - flake8
-  - go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v9/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt
-  - go test -race gopkg.in/src-d/hercules.v9/... # run race test separately to preserve -covermode=count
+  - go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=atomic -race gopkg.in/src-d/hercules.v9/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt
   - $GOPATH/bin/hercules version
   - $GOPATH/bin/hercules --burndown --couples --devs --quiet --pb https://github.com/src-d/hercules > 1.pb
   - cp 1.pb 2.pb