Setup Codecov (#235)

This commit is contained in:
Thomas Pelletier
2018-07-24 11:27:17 -07:00
committed by GitHub
parent 5c5490133d
commit 14d3ac30da
3 changed files with 4 additions and 7 deletions
+2 -5
View File
@@ -13,9 +13,6 @@ script:
- if [ -n "$(go fmt ./...)" ]; then exit 1; fi - if [ -n "$(go fmt ./...)" ]; then exit 1; fi
- ./test.sh - ./test.sh
- ./benchmark.sh $TRAVIS_BRANCH https://github.com/$TRAVIS_REPO_SLUG.git - ./benchmark.sh $TRAVIS_BRANCH https://github.com/$TRAVIS_REPO_SLUG.git
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
after_success: after_success:
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=coverage.out -repotoken $COVERALLS_TOKEN - bash <(curl -s https://codecov.io/bash)
+1 -1
View File
@@ -2,4 +2,4 @@
Explanation of what this pull request does. Explanation of what this pull request does.
More detailled description of the decisions being made and the reasons why (if the patch is non-trivial). More detailed description of the decisions being made and the reasons why (if the patch is non-trivial).
+1 -1
View File
@@ -44,7 +44,7 @@ cp -R query/* src/github.com/pelletier/go-toml/query
go build -o test_program_bin src/github.com/pelletier/go-toml/cmd/test_program.go go build -o test_program_bin src/github.com/pelletier/go-toml/cmd/test_program.go
# Run basic unit tests # Run basic unit tests
go test github.com/pelletier/go-toml -covermode=count -coverprofile=coverage.out go test github.com/pelletier/go-toml -race -coverprofile=coverage.txt -covermode=atomic
go test github.com/pelletier/go-toml/cmd/tomljson go test github.com/pelletier/go-toml/cmd/tomljson
go test github.com/pelletier/go-toml/query go test github.com/pelletier/go-toml/query