Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adjust CI
  • Loading branch information
xiekeyi98 committed Apr 17, 2019
1 parent cb53457 commit 43c201a
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .codecov.yml
Expand Up @@ -8,10 +8,10 @@ coverage:
range: "65...90"

status:
project:
project:
default:
threshold: 20 #Allow the coverage to drop by threshold%, and posting a success status.
patch:
patch:
default:
target: 0% # trial operation
changes: no
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -6,8 +6,7 @@ go:
- "1.12.x"

env:
- TEST_SUITE="build"
- TEST_SUITE="test"
- TEST_SUITE="build test"
- TEST_SUITE="cover upload-cover"

# Run coverage tests.
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -26,7 +26,7 @@ ifeq ("$(WITH_RACE)", "1")
GOBUILD = GOPATH=$(GOPATH) CGO_ENABLED=1 $(GO) build
endif

.PHONY: build checksuccess test cover upload-cover
.PHONY: build checksuccess test cover upload-cover gotest

default: build checksuccess

Expand All @@ -39,7 +39,9 @@ checksuccess:
echo "failpoint-ctl build successfully :-) !" ; \
fi

test:
test: gotest

gotest:
$(GOTEST) -v ./...

cover:
Expand All @@ -53,3 +55,4 @@ upload-cover: SHELL:=/bin/bash
upload-cover:
mv overalls.coverprofile coverage.txt
bash <(curl -s https://codecov.io/bash)

6 changes: 6 additions & 0 deletions go.mod
Expand Up @@ -3,7 +3,13 @@ module github.com/pingcap/failpoint
go 1.12

require (
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
github.com/go-playground/overalls v0.0.0-20180201144345-22ec1a223b7c // indirect
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf // indirect
github.com/nicksnyder/go-i18n v1.10.0 // indirect
github.com/pelletier/go-toml v1.3.0 // indirect
github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8
github.com/yookoala/realpath v1.0.0 // indirect
gopkg.in/alecthomas/gometalinter.v2 v2.0.12 // indirect
gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20180810215634-df19058c872c // indirect
)
21 changes: 21 additions & 0 deletions go.sum
@@ -0,0 +1,21 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/go-playground/overalls v0.0.0-20180201144345-22ec1a223b7c/go.mod h1:UqxAgEOt89sCiXlrc/ycnx00LVvUO/eS8tMUkWX4R7w=
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf h1:7+FW5aGwISbqUtkfmIpZJGRgNFg2ioYPvFaUxdqpDsg=
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf/go.mod h1:RpwtwJQFrIEPstU94h88MWPXP2ektJZ8cZ0YntAmXiE=
github.com/nicksnyder/go-i18n v1.10.0 h1:5AzlPKvXBH4qBzmZ09Ua9Gipyruv6uApMcrNZdo96+Q=
github.com/nicksnyder/go-i18n v1.10.0/go.mod h1:HrK7VCrbOvQoUAQ7Vpy7i87N7JZZZ7R2xBGjv0j365Q=
github.com/pelletier/go-toml v1.3.0 h1:e5+lF2E4Y2WCIxBefVowBuB0iHrUH4HZ8q+6mGF7fJc=
github.com/pelletier/go-toml v1.3.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo=
github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8 h1:USx2/E1bX46VG32FIw034Au6seQ2fY9NEILmNh/UlQg=
github.com/pingcap/check v0.0.0-20190102082844-67f458068fc8/go.mod h1:B1+S9LNcuMyLH/4HMTViQOJevkGiik3wW2AN9zb2fNQ=
github.com/yookoala/realpath v1.0.0/go.mod h1:gJJMA9wuX7AcqLy1+ffPatSCySA1FQ2S8Ya9AIoYBpE=
gopkg.in/alecthomas/gometalinter.v2 v2.0.12 h1:/xBWwtjmOmVxn8FXfIk9noV8m2E2Id9jFfUY/Mh9QAI=
gopkg.in/alecthomas/gometalinter.v2 v2.0.12/go.mod h1:NDRytsqEZyolNuAgTzJkZMkSQM7FIKyzVzGhjB/qfYo=
gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20180810215634-df19058c872c h1:vTxShRUnK60yd8DZU+f95p1zSLj814+5CuEh7NjF2/Y=
gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20180810215634-df19058c872c/go.mod h1:3HH7i1SgMqlzxCcBmUHW657sD4Kvv9sC3HpL3YukzwA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

0 comments on commit 43c201a

Please sign in to comment.