This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix lint and coverage Signed-off-by: Yuri Shkuro <[email protected]> * Use separate target for cover as older Go versions cannot do multi-package coverage Signed-off-by: Yuri Shkuro <[email protected]> * fix makefile Signed-off-by: Yuri Shkuro <[email protected]>
- Loading branch information
1 parent
6b6f234
commit f6bb0d0
Showing
3 changed files
with
18 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
# IntelliJ project files | ||
.idea/ | ||
opentracing-go.iml | ||
opentracing-go.ipr | ||
opentracing-go.iws | ||
|
||
# Test results | ||
*.cov | ||
*.html | ||
test.log | ||
|
||
# Build dir | ||
build/ | ||
coverage.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
language: go | ||
|
||
go: | ||
- 1.7.x | ||
- 1.8.x | ||
- 1.9.x | ||
- tip | ||
matrix: | ||
include: | ||
- go: "1.7.x" | ||
- go: "1.8.x" | ||
- go: "1.9.x" | ||
- go: "tip" | ||
env: | ||
- LINT=true | ||
- COVERAGE=true | ||
|
||
install: | ||
- go get -u golang.org/x/lint/golint/... | ||
- if [ "$LINT" == true ]; then go get -u golang.org/x/lint/golint/... ; else echo 'skipping lint'; fi | ||
- go get -u github.com/stretchr/testify/... | ||
- go get -u golang.org/x/net/context | ||
|
||
script: | ||
- make test lint | ||
- make test | ||
- go build ./... | ||
- if [ "$LINT" == true ]; then make lint ; else echo 'skipping lint'; fi | ||
- if [ "$COVERAGE" == true ]; then make cover && bash <(curl -s https://codecov.io/bash) ; else echo 'skipping coverage'; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters