use goverage for testing with coverage reports

update dependencies
This commit is contained in:
Jakob Schrettenbrunner 2017-06-26 20:28:25 +02:00
parent f20a9b81f8
commit 271e4fb5ef
3 changed files with 21 additions and 19 deletions

View File

@ -6,10 +6,12 @@ go:
install: install:
- go get -u github.com/golang/dep/cmd/dep - go get -u github.com/golang/dep/cmd/dep
- go get github.com/haya14busa/goverage
- go get github.com/schrej/godacov - go get github.com/schrej/godacov
- dep ensure - dep ensure
script: script:
- go build -o wings - go build -o wings
- go test -coverprofile=coverage.out ./... - goverage -v -coverprofile=coverage.out ./...
- godacov -t $CODACY_TOKEN -r ./coverage.out -c $TRAVIS_COMMIT - godacov -t $CODACY_TOKEN -r ./coverage.out -c $TRAVIS_COMMIT

32
Gopkg.lock generated
View File

@ -7,12 +7,6 @@
revision = "af5e0ef38369dfb5819b56d27d593142841e4600" revision = "af5e0ef38369dfb5819b56d27d593142841e4600"
version = "0.1.2" version = "0.1.2"
[[projects]]
name = "github.com/Sirupsen/logrus"
packages = ["."]
revision = "ba1b36c82c5e05c4f912a88eab0dcd91a171688f"
version = "v0.11.5"
[[projects]] [[projects]]
name = "github.com/davecgh/go-spew" name = "github.com/davecgh/go-spew"
packages = ["spew"] packages = ["spew"]
@ -47,7 +41,7 @@
branch = "master" branch = "master"
name = "github.com/mitchellh/mapstructure" name = "github.com/mitchellh/mapstructure"
packages = ["."] packages = ["."]
revision = "cc8532a8e9a55ea36402aa21efdf403a60d34096" revision = "d0303fe809921458f417bcf828397a65db30a7e4"
[[projects]] [[projects]]
name = "github.com/pelletier/go-buffruneio" name = "github.com/pelletier/go-buffruneio"
@ -58,8 +52,8 @@
[[projects]] [[projects]]
name = "github.com/pelletier/go-toml" name = "github.com/pelletier/go-toml"
packages = ["."] packages = ["."]
revision = "13d49d4606eb801b8f01ae542b4afc4c6ee3d84a" revision = "5ccdfb18c776b740aecaf085c4d9a2779199c279"
version = "v0.5.0" version = "v1.0.0"
[[projects]] [[projects]]
name = "github.com/pmezard/go-difflib" name = "github.com/pmezard/go-difflib"
@ -70,8 +64,14 @@
[[projects]] [[projects]]
name = "github.com/rifflock/lfshook" name = "github.com/rifflock/lfshook"
packages = ["."] packages = ["."]
revision = "2adb3e0c4ddd8778c4adde609d2dfd4fbe6096ea" revision = "6844c808343cb8fa357d7f141b1b990e05d24e41"
version = "1.6" version = "1.7"
[[projects]]
name = "github.com/sirupsen/logrus"
packages = ["."]
revision = "202f25545ea4cf9b191ff7f846df5d87c9382c2b"
version = "v1.0.0"
[[projects]] [[projects]]
branch = "master" branch = "master"
@ -89,7 +89,7 @@
branch = "master" branch = "master"
name = "github.com/spf13/jwalterweatherman" name = "github.com/spf13/jwalterweatherman"
packages = ["."] packages = ["."]
revision = "8f07c835e5cc1450c082fe3a439cf87b0cbb2d99" revision = "0efa5202c04663c757d84f90f5219c1250baf94f"
[[projects]] [[projects]]
branch = "master" branch = "master"
@ -100,7 +100,7 @@
[[projects]] [[projects]]
name = "github.com/spf13/viper" name = "github.com/spf13/viper"
packages = ["."] packages = ["."]
revision = "0967fc9" revision = "c1de95864d73a5465492829d7cb2dd422b19ac96"
[[projects]] [[projects]]
name = "github.com/stretchr/testify" name = "github.com/stretchr/testify"
@ -112,13 +112,13 @@
branch = "master" branch = "master"
name = "golang.org/x/sys" name = "golang.org/x/sys"
packages = ["unix"] packages = ["unix"]
revision = "e62c3de784db939836898e5c19ffd41bece347da" revision = "c23410a886927bab8ca5e80b08af6a56faeb330d"
[[projects]] [[projects]]
branch = "master" branch = "master"
name = "golang.org/x/text" name = "golang.org/x/text"
packages = ["internal/gen","internal/triegen","internal/ucd","transform","unicode/cldr","unicode/norm"] packages = ["internal/gen","internal/triegen","internal/ucd","transform","unicode/cldr","unicode/norm"]
revision = "19e51611da83d6be54ddafce4a4af510cb3e9ea4" revision = "4e9ab9ee170f2a39bd66c92b3e0a47ff47a4bc77"
[[projects]] [[projects]]
branch = "v2" branch = "v2"
@ -129,6 +129,6 @@
[solve-meta] [solve-meta]
analyzer-name = "dep" analyzer-name = "dep"
analyzer-version = 1 analyzer-version = 1
inputs-digest = "e16ef683ca7989700b7906f19c244a648f891f0c9998b6ce8e2a7664a581e915" inputs-digest = "5500d3d5168d468ca979c9648a6c61c0573c6b9979e8d3c21a342855b0944f98"
solver-name = "gps-cdcl" solver-name = "gps-cdcl"
solver-version = 1 solver-version = 1

View File

@ -63,7 +63,7 @@
name = "github.com/lestrrat/go-file-rotatelogs" name = "github.com/lestrrat/go-file-rotatelogs"
[[constraint]] [[constraint]]
version = "v0.11.5" version = "v1.0.0"
name = "github.com/sirupsen/logrus" name = "github.com/sirupsen/logrus"
[[constraint]] [[constraint]]
@ -71,7 +71,7 @@
name = "github.com/rifflock/lfshook" name = "github.com/rifflock/lfshook"
[[constraint]] [[constraint]]
revision = "0967fc9" revision = "c1de95864d73a5465492829d7cb2dd422b19ac96"
name = "github.com/spf13/viper" name = "github.com/spf13/viper"
[[constraint]] [[constraint]]