forked from kujtimiihoxha/kit
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kujtim
committed
Sep 29, 2017
1 parent
27db19f
commit f83a92c
Showing
19 changed files
with
318 additions
and
273 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: go | ||
|
||
env: | ||
- COVERALLS_TOKEN=sW1SPRRXgQPGUiUmt43mTkMUzrsyqIBY7 | ||
|
||
before_install: | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/modocache/gover | ||
- go get github.com/Masterminds/glide | ||
install: | ||
- glide install | ||
script: | ||
- go test -race -v ./... | ||
- ./coveralls.bash | ||
go: | ||
- 1.9.x |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
if ! type -P gover | ||
then | ||
echo gover missing: go get github.com/modocache/gover | ||
exit 1 | ||
fi | ||
|
||
if ! type -P goveralls | ||
then | ||
echo goveralls missing: go get github.com/mattn/goveralls | ||
exit 1 | ||
fi | ||
|
||
if [[ "$COVERALLS_TOKEN" == "" ]] | ||
then | ||
echo COVERALLS_TOKEN not set | ||
exit 1 | ||
fi | ||
|
||
go list ./... | grep -v '/examples/' | cut -d'/' -f 4- | while read d | ||
do | ||
cd $d | ||
go test -covermode count -coverprofile coverage.coverprofile | ||
cd - | ||
done | ||
|
||
gover | ||
goveralls -coverprofile gover.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN | ||
find . -name '*.coverprofile' -delete |
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
Oops, something went wrong.