浏览代码

Enable race detection on test run

Signed-off-by: Robert Lin <robertlin1@gmail.com>
Robert Lin 6 年之前
父节点
当前提交
60eb49c587
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      .travis.yml
  2. 1 0
      coverage.txt

+ 1 - 0
.travis.yml

@@ -65,6 +65,7 @@ script:
   - 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
   - $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

+ 1 - 0
coverage.txt

@@ -0,0 +1 @@
+mode: atomic